1
Python and Java API / 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:
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
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