Forum

Author Topic: Custom processing boundary  (Read 2216 times)

MarijnS

  • Newbie
  • *
  • Posts: 3
    • View Profile
Custom processing boundary
« on: October 07, 2024, 01:56:55 PM »
Hi!

We run a lot of mapping projects through Metashape with a lot of photos and sometimes we want to either try something to just a small part of our projects or simply run the steps of pointcloud / orthomosaic creation on s smaller part of our dataset. And while I am aware that it is possible to clip the output to a shape it would also be nice to use these shapes as processing boundaries (Think Pix4d).
We have not been able to find out how to do this though, is it even possible?

Cheers!

olihar

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
Re: Custom processing boundary
« Reply #1 on: October 07, 2024, 07:15:03 PM »
Change the bounding box.

MarijnS

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Custom processing boundary
« Reply #2 on: October 08, 2024, 12:50:07 PM »
Sure, that's possible, but it's not using a shape as a boundary, a la Pix4d, which is what my question was.

olihar

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
Re: Custom processing boundary
« Reply #3 on: October 08, 2024, 01:47:03 PM »
You can fit boundary to a shape with a script.

JMR

  • Hero Member
  • *****
  • Posts: 526
    • View Profile
Re: Custom processing boundary
« Reply #4 on: October 11, 2024, 03:03:24 AM »
Hello, MarijnS:
There is no such a tool for processing only inside of an irregular boundary shape, but theres is a workaround that can do something similar. Besides what Olihar suggests that is to srink the bounding box to a size that encloses only what you need, I must agree with anyone complaining about this method not being very cost-effective in many cases where a box shape is not what we want, but rather is a U or an S or a circle shape.

For example lets say you have aligned a full dataset covering an island with round shape and 5km radius, and now you only want an ultra-high quality model of the coast with only 30 metres width without having to spend days processing the interior. In that case you would love to have a way to workaround. Well, here is one.

Right over the sparse cloud draw a polygon enclosing the area that you want (do not try to be super precise), then right clic on the shape and pick filter photos by shape. Then select all photos remaining on the photos pane and then go to the 'Edit' menu to pick 'Invert Selection' so that everything but the the wanted photos become selected (and turn pink)
then right click on the model viewport and use 'disable images' (and deselect all by selecting nothing with the fence tool in the air)

You are now ready to process just the subset of images that matter for the area you wanted and afterwards you will be allowed to use a proper boundary shapes to either clip outside or inside your deliverables.

I hope it helps you and If you wish really to shorten your learning curve from Pix4Death... just let us know.

José Martínez & ACCUPIXEL
your Metashape therapists ;-)


Tas

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: Custom processing boundary
« Reply #5 on: November 01, 2024, 05:36:34 AM »
You can fit boundary to a shape with a script.

Olihar, would it be any trouble to reference the script you're referring to? I've searched the forum and github repository without luck (so far).

Thanks!