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.

Reading a new image using C6416T

Hi,

   I need to read and display an image using C6416T for any image processing operation (e.g dilation). While executing the example programs the images which are stored in example projects are only being read. If I attempt to read different images the output is the same as before. Please hep !

  • Hi,

    Thanks for your post.

    In my opinion, dilation operation functions on the IMGLIB which has special requirements and note on the input image to be used and here are the few:

    1. The input image needs to have a multiple of 64 pixels (bits) per row. Therefore, cols must be a multiple of 8.

    2. The 3x3 dilation mask is applied to 32 output pixels simultaneously. This is done with 32-bit-wide bit-wise operators in the register file. To do this, the code reads in a 34-bit-wide input window, and 40-bit operations are used to manipulate the pixels initially. Because the code reads a 34-bit context for each 32-bits of output, the input needs to be one byte longer than the output to make the rightmost two pixels

    well-defined.

    Likewise, there are also other special requirements and notes too. For more info. on algorithm, please check the c64x+ image processing library user guide below and refer section 5.4 "IMG_dilate_bin":

    http://www.ti.com/lit/ug/spruf30a/spruf30a.pdf

    You could also download the mathWorks simulink blocks for the TMC320C64x+ IMGLIB library kernels below which would provide easy prototyping of the algorithms using IMGLIB in the Simulink environment:

    http://www.ti.com/tool/sprc589

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------

  • Hi, thanks for the quick reply. Is there any example documentation on how to read and open an outside (not included in example codes) image using C64XX. Thanks !
  • Hi,

    Dilation and erosion are the fundamental building blocks of various morphological operations such as Opening or Closing that can be created from combinations of dilation and erosion. Please check the 64x+ image processing library user guide below:

    http://www.ti.com/lit/ug/spruf30a/spruf30a.pdf

    Thanks & regards,

    Sivaraj K