Forum

Author Topic: Image channel for estimateImageQuality  (Read 4602 times)

Geend

  • Newbie
  • *
  • Posts: 12
    • View Profile
Image channel for estimateImageQuality
« on: April 22, 2018, 01:09:33 PM »
Hello,
is it possible to specify the channel PhotoScan.Utils.estimateImageQuality(...) uses?

My script looks like this:
Code: [Select]
...
chunk.addPhotos(photos)

chunk.primary_channel = 4

for camera in chunk.cameras:
    quality = PhotoScan.Utils.estimateImageQuality(camera.photo.image())

    if quality < 0.7:
        camera.enabled = False
...

However estimateImageQuality seems to operate on channel 0 instead of channel 4.

My primary goal is to disable all photos with a quality lower than 0.7.

Best regards,
Torben

Geend

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Image channel for estimateImageQuality
« Reply #1 on: April 24, 2018, 03:37:29 PM »
The correct way of doing this seems to be this: http://www.agisoft.com/forum/index.php?topic=8744.0