Hi all,
I need help on this:
The following attachments is my program. It will open a 8-bit greyscale bmp picture file which will look for a white pixel (value of 255) on a specific location of the picture and determine which pattern it is.
The program should run like this:
When running the program, and if you open the pattern A bmp file , a message box will pop up telling you that the file is "pattern A" And if you open the pattern B bmp file , a message box pop up will tell you that it is "pattern B". The program will know whether it is pattern A or B by determine whether there is a white pixel within a specific location.
Problem:
My program is able to determine pattern A picture file succesfully but i encountered a problem in pattern B file, both message box pop up (this mean that the file is pattern A and pattern B). I went to check the array of pattern B picture file (using imread in matlab) whether is there any white pixel within the specific location for pattern A, but there are no white pixel there. If you open pattern B file in paint, it can be clearly seen that there are no white pixel in the specific location for pattern A.
Thank you all in advance.
Regards,
Lip Seng