Hi everyone,
I would like to use Matlab to to do image analysis of objects on grayscale images. In short, I have images of metal alloys in grayshades. The variations in shade correspond to a variations in the composition of the alloy (e.g., darker has more Ni, lighter has more Fe, etc...). I would like to study the alloys through image analysis to create compositional domains and study the composition of those compositional domain. I would appreciate some help into how to transform (script, functions) images in Matlab to do so.
In more details:
1- I would like to convert the grayscale image (for which pixel have values varying from 0-255) into a simpler image (one which would only have 5-7 shades) by assigning a new value to all pixels belonging to a certain range so I could more efficiently display the different compositional domains on the image. For examples, all pixels with a value between 0-45 would become 0, all pixels from 46-85 would become 50, all pixels from 86-120 would become 100, etc... So, my intensity map with 255 values would become a intensity or colour map with now only 5-7 values which are easily distinguishable from each other.
2- Second, I would like to be able to do statistics on those pixels. For instance, I would like to be able to calculate the total area covered by all pixels from category 0 (which originally had a value between 0-45), calculate the total area covered by all pixels from category 50 (which originally had a value between 46-85), etc...
Thanks everyone.
Cheers,
Sim.
I would like to use Matlab to to do image analysis of objects on grayscale images. In short, I have images of metal alloys in grayshades. The variations in shade correspond to a variations in the composition of the alloy (e.g., darker has more Ni, lighter has more Fe, etc...). I would like to study the alloys through image analysis to create compositional domains and study the composition of those compositional domain. I would appreciate some help into how to transform (script, functions) images in Matlab to do so.
In more details:
1- I would like to convert the grayscale image (for which pixel have values varying from 0-255) into a simpler image (one which would only have 5-7 shades) by assigning a new value to all pixels belonging to a certain range so I could more efficiently display the different compositional domains on the image. For examples, all pixels with a value between 0-45 would become 0, all pixels from 46-85 would become 50, all pixels from 86-120 would become 100, etc... So, my intensity map with 255 values would become a intensity or colour map with now only 5-7 values which are easily distinguishable from each other.
2- Second, I would like to be able to do statistics on those pixels. For instance, I would like to be able to calculate the total area covered by all pixels from category 0 (which originally had a value between 0-45), calculate the total area covered by all pixels from category 50 (which originally had a value between 46-85), etc...
Thanks everyone.
Cheers,
Sim.