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.

IMG_dilate_bin( ) in image library

hi,

I'm trying to use IMG_dilate_( ) to dilate the thresholded image with DM6437.According to the test program which includes  the calling of IMG_dilate_bin,each bit in a byte is a pixel in outdata(dilated data).

In my program,i write a function to convert the outdata mentioned above to the one where each pixel occupies two bytes(same to indata).After doing these ,take the converted data to following process.

But the result is not what i want.All I am getting is the "colored Stipes" on the screen.

Can anyone tell me where the problem is?Is the way i work with the IMG_dilate_bin( )  right?

What's more,i am not quite clear about the storing format of  the outdata(dilated data),does anyone know it?

I will appreciate your kindly help.Thanks at advance.