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.

how to show gray image in CCS 2.2 by view/graph/image?

Hi, I have some issues about the CCS image setting and hope to get your suggestions 1. the arrary:I_sdram, stored gray image data (total:6400; i.e.,80×80 for image size), data type is ‘int’ (0~255), address of the array I_sdram is 0x8027-0000 2. Main configurations for image/color space/RGB: Display type: image Color space: RGB Interleaved data sources: no Start address-R source: 0x8027-0000 Start address-G source: 0x8027-0000 Start address-B source: 0x8027-0000 Lines per display: 80 Pixels per line: 80 Index increment: 4 3. The image shows wrongly in CCS; the whole image is black (the data is all zero). I am a little confused about the index increment definition (right if choose the value 4?) Best regards
  • Hi

    I have some difficulties about the CCS image setting and hope to get your suggestions

    1. the arrary named "I_sdram", stored gray image data (total:6400; i.e.,80×80 for image size), data type is ‘int’ (value range:0~255), address of the array I_sdram is 0x8027-0000

     

    2. Main configurations for image/color space/RGB:

    Display type: image

    Color space: RGB

    Interleaved data sources: no

    Start address-R source: 0x8027-0000

    Start address-G source: 0x8027-0000

    Start address-B source: 0x8027-0000

    Lines per display: 80

    Pixels per line: 80

    Index increment: 4

     

    3. The image shows wrongly in CCS; the whole image is black (the data is all zero). I am a little confused about the index increment definition (right if choose the value 4?)

    Best regards

  • Update

     

      I re-post my questions and hope to get your suggestions.

      My key issue is how to show the intensity image in CCS environment, CCS version 2.2.

    1.       the value of the result image data is 0~255;

    2.       display the intensity image in PC MATLAB (Version 7.0) succesfully, and convert the data to RGB type, find that the data is the same for R,G,and B repectively; but different from the original imtensity image. Does this means ‘YUV’ type is right in space color for CCS/view/graphic/image?

    3.       If I understood correctly, the only Y element in ‘YUV’ type is for imtensity image. How can I set my Y and V element in the ‘YUV’ type in this case?

    4.       also try to configure a array (256 int number,16*16, value: 0,1,2,3,4,5,6,…,253,254,255), and I can not find the relative number in the image shown in the CCS, they are all RGB value. Hope to get your comments…

     

    Best Regards

  • missed the important information, sorry!

     

    Environment: Emulator. When using the function (CCS/view/graphy/image), I stored the data of intensity image in SDRAM via EMIFA in its CE0 space

     

    I studied the CCS user’s guider (SPRU328B):

    It says: There are two buffers associated with the graph window: the acquisition buffer and the display buffer. The acquisition buffer resides on the actual/simulated target board. It contains the data that you are interested in. When a graph is updated, the acquisition buffer is read from the actual/simulated target board and updates the display buffer.

     

    ---Q. In my case, the acquisition buffer should locate in the actual target board. Where is the location, only be located in the inner DSP or can be located in the EMIF (external memory interface) device (e.g. SDRAM)?

     

    Hope to get your comments.

    Thanks and Best Regards

  • Hi !

    Did You ever find a solution to this problem ?

    I am in the same situation

    Kind regards Morten

  • Re:

        I have not fixed the issue by now. My solution for your reference:  transfer the *.dat to PC, and show the PIC in the MATLAB environmment.

    Best Regards