syntychakis
April 6th, 2010, 02:46 PM
Hallo everybody,
I am a beginner with python. I want to do something, but i didn't not
succeed yet, so i hope that you could help me.
I have a grayscale image. (500 by 500 pixels). The colour of the image
is gray with some noise (black white) (something like an echography
image). on the image there are also some round objects. These objects
are +/- 15 by 15 pixels and have a round shape. In the middel of the
these objects is the pixel value the greatest.
What i want is to be able to detect these objects and get their
position and average pixelvalue into excel.
Ik was thinking, that i could do something like this; 'cut' the image
in pieces of 3 by 3 pixels. If in one of the pieces the average pixel
value is higher than (for example: 150, then i know that, that is an
object i am looking for. so the position of the object must been
written to excel. Then python has to make a 15 by 15 pixel piece and
get the average pixelvalue of it into excel.
so, my biggest problem is not to get the data into excel, but to find these objects.
I hope you can understand what i mean and you can help me.
I also hope i am at the right forum to ask this. If not, could
somebody tell where i have to be?
thanks in advance,
I am a beginner with python. I want to do something, but i didn't not
succeed yet, so i hope that you could help me.
I have a grayscale image. (500 by 500 pixels). The colour of the image
is gray with some noise (black white) (something like an echography
image). on the image there are also some round objects. These objects
are +/- 15 by 15 pixels and have a round shape. In the middel of the
these objects is the pixel value the greatest.
What i want is to be able to detect these objects and get their
position and average pixelvalue into excel.
Ik was thinking, that i could do something like this; 'cut' the image
in pieces of 3 by 3 pixels. If in one of the pieces the average pixel
value is higher than (for example: 150, then i know that, that is an
object i am looking for. so the position of the object must been
written to excel. Then python has to make a 15 by 15 pixel piece and
get the average pixelvalue of it into excel.
so, my biggest problem is not to get the data into excel, but to find these objects.
I hope you can understand what i mean and you can help me.
I also hope i am at the right forum to ask this. If not, could
somebody tell where i have to be?
thanks in advance,