02-15-2006 08:18 AM
02-15-2006 09:42 AM
First, you read the image with the 'read bmp file'. Then you use the 'unflatten pixmap' to convert the picture data into an 2D array of booleans or integers. Now you can use the normal array routines to do whatever you like to the image. You could take a subset of the 2D array representing the upper left corner and add all pixels togethers. If the answer is > 0, then there's a non-black part in the image...
Another option would be to first select a part of the image, before you convert it to . You can cut that part from the image with the 'get image subset'. Then convert only that small part into an array. That's better when you have really big images.
02-15-2006 10:11 AM
02-15-2006 07:02 PM
Hi Anthony,
Thanks for your reply. I think i will choose the 1st option. I am still green to labview and i am trying to do what you have suggested. But I do not know how to seperate the main array to sub array, and then add the pixels value together to compare. Pls advise.
Thank you.
The following diagram is what i have done.
02-16-2006 03:25 AM
Unfortunately, I can't see your diagram.
I've made a little example program, going through all the steps; Getting the file, taking a subarray, and then analysing the subarray.
Included three different possible analysis schemes: Finding the maxima, getting the sum, or doing a complete histogram, like Wiebe suggested.
Depends on the exact problem what kind of scheme you would use.
NB: The example program is made for 8-bit bmp's. (Thus either 256 grayscale levels, or colours.)
02-16-2006 09:40 AM