Skip to main content

how can I get a 16 bit TIFF?

Answered

Comments

5 comments

  • Official comment
    TDY_Ifeanyi
    Community team
    Great answers
    Expert (Gold)

    Hello Greg,

    I am afraid that our sdk only support Mono8 or BGR8 for retrieving bitmap image. If this is a blocker to your project, please open a support ticket via https://flir.custhelp.com/app/ask Our sales representative would get back to you, and probably open sdk feature request ticket to be prioritize via our PM.

    Mono12p is packed pixel format, and saving as .tiff file will unpack it to 8-bit format. So, It would require saving as .raw format to keep the original Mono12p.

    Regards,

    Ifeanyi

  • TDY_Ifeanyi
    Community team
    Great answers
    Expert (Gold)

    Hello Greg,

    That's correct for our USB3 and GigE cameras. However, different camera models and interfaces may have unique features (such as supported pixel format, maximum exposure time, etc) which must be considered during software implementation. 

    With that said, Mono12Packed pixel format is for GigE cameras, and Mono12p is for USB3 cameras. Besides, it does not make sense converting from Mono12p to Mono12Packed, since both are 12 bit pixel format.

    Have you tried with any of below implementation for retrieving bitmap image?

    image.ConvertToBitmapSource(PixelFormatEnums.Mono8, tempImage); // for monochrome camera
    image.ConvertToBitmapSource(PixelFormatEnums.BGR8, tempImage); // for color camera

    Regards,

    Ifeanyi

    0
  • Greg Huff

    Mono8 works, as I said. How can I get a 16-bit BitmapSource and/or a tiff file? If I save the Mono12p ManagedImage as a tiff it is only 8-bit.

    0
  • Greg Huff

    Ok. I assumed it would unpack it to save it in 16 bit mode. If I set it to Mono16 mode and then save as a tiff, it works.

    But I would still like to access the image data without having to save it as a tiff and then load the tiff.

    How do you recommend accessing the image buffer? Would I use image.DataPtr?

    0
  • TDY_Ifeanyi
    Community team
    Great answers
    Expert (Gold)

    Hi Greg,

    That's correct, rawImage.DataPtr allow access to ImanagedImage object data.

    I hope the provided information thus far helps to proceed with the implementation.

    Regards,
    Ifeanyi

    0

Please sign in to leave a comment.

Powered by Zendesk