This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM355 Previewer and grayscale images

                                             Hello!

   I am trying to process 12-bit grayscale image, obtained from monochrome image sensor, with DM355 previewer. I've tried different settings, but in any case, previewer treats my grayscale image as colored one. Is it possible for DM355 previewer to work with grayscale images? What settings could provide such a mode?

Thank you in advance.

  • Technical Support answer for DM36x:

    "Input B/W picture to the IPIPE/Previewer is difficult if not impossible. The 
    Preview Engine assumes Bayer pattern, so you will not be able to bypass the CFA, 
    which even disabled, will output 3 color out of 1 (assuming bayer pattern). May 
    be there are ways to setup CFA to still output grey data but we have not looked 
    into it.
    
    You can configure the blending and conversion mattrixes to not change the input 
    values so that after RGB2YUV conversion, will output 422 data, or CbYCrY data 
    stream, where Y data is your expected data, but only 8-bit.
    You maybe able to use the Preview engine for dark frame subtraction as long as 
    you are OK with the output to be like that. "
    
    We unfortunately do not plan to provide technical support to use IPIPE/Previewer 
    for B/W or monochrome sensor.
    Most likely you would need to check/contract with some partners like APPRO or 
    leopard imaging to see if adding B/W support can be done.
    
    I think that the easiest way would be to save raw B/W data directly to memory 
    (and not go through the IPIPE/Previewer) and use SW for processing if needed.
    
  • All right, than an other question. As far as I understand know, if I want to recieve and process an image from monochrome sensor, I must first save it into RAM without using the IPIPE and than process it as a data object from RAM.

    Than the next question, - which levels of TI DM355 programming model support the processing of grayscale images?

    I've tried to perform JPEG compression of B/W images using DMAI application, included in DVSDK, but, although there was GRAY type of the input data in the params, it also treated my image as colored one. So can I use VISA or should I work with XDM API (which has the XDM_GRAY chroma type)?

  • Mikhail, you can encode black/white image. But sometimes you can get color image as result, e.g. from black/white sensor Cypress on DM368 I get and encode data, but sometimes result image was reddish. You can use IPIPE for solve this problem.

  • Have you written the program yourself or used one of the encoding applications, which come with DVSDK?

  • Mikhail, I used Appro SDK with local changes.

  • Great! Thank you very much.