05-24-2011 03:35 AM
> I could not find the function CreateBitmap
Sorry, I was meaning NewBitmap ( ), standard CVI function.
With reference to the color table, you can find a sample color table for grayscale images in ConvertFile or ConvertBMP functions in my sample. For an 8bpp image the color table should be 2^8 = 256 int values. Values in image data are indexes in that color table.
05-26-2011 10:34 PM
Hi !
Thank you very much for your help!
I'm sorry to tell you that I could not understand the algorithm in your sample .I build a simple project in the attachment.
I'd like you to help me modify it and indicate mistakes in it .
You could help me when you have time.
Thank you very much indeed.
Best Regards.
05-26-2011 11:45 PM
Hi, when posting a sample project to the forum you do not need to include neither the cvibuild.xx directory nor *_dbg.* files: these are regenerated every time by the compiler so there is no need to add them; furthermore, they use a lot of web space on this site. As an example, your project with only the relevant files occupy only 6 kB of space!
On the other hand, in your case you must provide instead a sample image and the corresponding data as received through the serial port and dumped to disk, as they are necessary to try and test the algorithm.
05-27-2011 01:22 AM
Hi !
Thanks for your information and for being so helpful.
I'll see to it.
Best Regards.