Forum

Author Topic: batch process optimization  (Read 3872 times)

mrv2020

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
batch process optimization
« on: December 12, 2023, 10:17:12 PM »
Hi Alexey,

1. It often happens that there are images wrongly aligned with absurd distances, is there a way to select only those images with an error greater than "x" meters and reset the alignment?

2. There are also images that do not align automatically and for that I need to manually select them and ask them to align them in small groups. Is there a way to automate this selection and ask them to align the selected group again?

3. As the region box was wrong, I need to reset region, as I use batch for the processes, but I cannot use the reset region on network option, is there a way to implement it easy?

Best regards,
« Last Edit: December 13, 2023, 04:55:49 PM by mrv2020 »

tazzo

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: batch process optimization
« Reply #1 on: December 13, 2023, 12:59:56 PM »
I think you should improve your picture taking workflow. Anyway you can automate everything with scripts, only something with batch processing.

mrv2020

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: batch process optimization
« Reply #2 on: December 13, 2023, 04:46:49 PM »
To realign I used

Code: [Select]
realign_list = list()
for camera in chunk.cameras:
      if not camera.transform:
            realign_list.append(camera)
chunk.alignCameras(cameras = realign_list)

For bad position I used
Code: [Select]
for c in BadCameras:
      c.transform = None

For reset region size
Code: [Select]
T = chunk.transform.matrix
S = chunk.transform.scale
crs = chunk.crs

region = chunk.region
region.center = T.inv().mulp(crs.unproject(new_center))
region.size = new_size / S

chunk.region = region


But not sequencial images, and the high distance I can`t reset align.