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.

Displaying Bitmap images in CCS

Hey guys

I'm having some trouble display the data for .bmp images using the View->Graph->Image method. I open the file and store the pixels in a buffer, when I display the buffer using the graph method, there are streaks running through it. I've came across this problem when playing the video in VLC player. but other media players play the videos fine. Has anyone got any ideas of how this happens? I've included an example frame: the left is the output from CCS and the right is the output from VLC. 

Thanks for your help

 

David

  • Found out what causes this. Need to consider the row paddding when you do this. Streak is an effect of the row padding being included for each row; which gives the diagonal nature of it.

  • David,

    The Image Analyzer cannot display a BMP image directly from a file - if you are doing this, please take into consideration some of the details shown in this forum thread.

    Regarding the streaks themselves, I can't pinpoint exactly what may be happening. One idea is to carefully match the width of the image with the parameters of the image analyzer (and consequently VLC). If the width is off by a few pixels, the consequence is an image that shifts its horizontal position at every line scanned.

    Another idea: the border you are seeing may indicate that each line stored in memory was overscanned from the image source - this would create a region of invalid pixels at the end of every line, and displaying it with the expected width would cause the shift mentioned before.

    Apart from this I can't think of any additional details that may be influencing the display of this image. The Image Analyzer is a static display that simply reads the memory linearly and displays it according to the parameters passed - thus any dynamic factors (V-sync, H-sync) are out of the question.

    Hope this helps,

    Rafael

  • Hi Rafael

    Thanks for getting back to me. I wasn't displaying the bitmap through CCS, I was only displaying the intensity values from the image data structure of the avi video. I can confirm that the streaks were due to me forgetting to consider the padding for each row of the image within the avi. I get lovely greyscale output now :P

    Thanks for your help

    David