computing the area of an objec
Posted: September 9th, 2010, 10:05 am
I know PWP wasn't designed to do quantitative microscopy on it, but I wonder if anyone have an idea how to do this: having a picture of an object that is different in colour and/or brightness from the background, how do calculate the number of pixels that belong to the object?
This is useful in science where one needs to calculate an area of an irregular object. Given the scan/picture of a flat object, which also includes an object of a known area, one can calculate the number of pixels 'covered' by the object in question and then by the object of a known area and calculated the area of the former.
It's easy to isolate the pixels of the object either by masking or several other techniques, then increase the contrast so that e.g. the background is black and the object white, but how how to count the white pixels?
This is useful in science where one needs to calculate an area of an irregular object. Given the scan/picture of a flat object, which also includes an object of a known area, one can calculate the number of pixels 'covered' by the object in question and then by the object of a known area and calculated the area of the former.
It's easy to isolate the pixels of the object either by masking or several other techniques, then increase the contrast so that e.g. the background is black and the object white, but how how to count the white pixels?