Forum

Author Topic: Working with import mask for radiometric calibration  (Read 1852 times)

ppant

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Working with import mask for radiometric calibration
« on: February 06, 2018, 06:39:14 PM »
Hello,
I am working on a python script to import masks for reflectance calibration. I have a white reference images and a mask file. This a code I am reading. This white reference are micasense QR one.

If I do
Code: [Select]
chunk.locateReflectancePanels()
white reference is loaded and when I chick the Mask in GUI for white reference I see a white rectangle over my Image as Masks.

Now the same thing I try this way where I load white image bands mask image for each band from file
Code: [Select]
white_name = [['C:/tmp/IMG_0003_1.tif',
                   'C:/tmp/IMG_0003_2.tif',
                   'C:/tmp/IMG_0003_3.tif',
                   'C:/tmpIMG_0003_4.tif',
                   'C:/tmp/IMG_0003_5.tif']]
    chunk.addPhotos(white_name, PhotoScan.MultiplaneLayout)
    chunk.importMasks(path='C:/tmp/mask/{filename}_mask.png', source=PhotoScan.MaskSourceFile,
                      operation=PhotoScan.MaskOperationReplacement)
   
    group = chunk.addCameraGroup()
    camera = chunk.cameras[0]
    camera.group = group
    group.label = "Calibration images"


When I try to see the mask in GUI, click mask in GUI I am not able to see which area is a mask. Am I doing something wrong

Could someone shade light on this issue. or it's not possible to see mask if I load the mask image separately.

Thanks
ppant