Forum

Author Topic: manage with photoscan 4 simultaneous cameras  (Read 18010 times)

mfran2002

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: manage with photoscan 4 simultaneous cameras
« Reply #30 on: May 18, 2016, 07:39:29 PM »
fantastic

just to avoid mistakes: for RED and BLU just I have to change the following:
Code: [Select]
   image = camera.photo.image().convert("R", "U8")
   image = camera.photo.image().convert("B", "U8")

right? no changes in the  following stetement?
 
Code: [Select]
image.save(camera.photo.path[:-3] + "tif")

only the last question:

in the chunk it remains the original 3-channels image?
but I need 1-channel image: how to replace in the chunk the images?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: manage with photoscan 4 simultaneous cameras
« Reply #31 on: May 18, 2016, 07:48:13 PM »
Hello mfran2002,

Using "R" and "B" labels in the image.convert function should save correspondingly Red and Blue channels from original RGB images.
Saving function removed the image extension (JPG in your case) save the images as TIFFs to disk.

I think that after re-saving the images you can organize TIFFs into valid folder structure corresponding to the bands and then use Add Folder option. Make sure that you are not mixing original 3-band JPGs with 1-band TIFF images in the same folder.
Best regards,
Alexey Pasumansky,
Agisoft LLC

mfran2002

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: manage with photoscan 4 simultaneous cameras
« Reply #32 on: May 18, 2016, 10:43:51 PM »
great Alexey!
ok in test, tomorrow I will try on real images

image.save does not overwrite TIF file if it already exists: do you know the command?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: manage with photoscan 4 simultaneous cameras
« Reply #33 on: May 18, 2016, 11:42:07 PM »
In case there's a tiff file already, it will be overwritten.
Best regards,
Alexey Pasumansky,
Agisoft LLC