Login  Register

Re: Roughness from cross-section image

Posted by Michael Schmid on Oct 24, 2017; 12:44pm
URL: http://imagej.273.s1.nabble.com/Roughness-from-cross-section-image-tp5019597p5019599.html

Hi A.,

you could try the following approach (assuming that the surface or
interface is horizontal in your cross-section image):
- Select the lower part of the image up to the surface or interface of
interest
- Create a mask
- Convert to 32-bit (float)
- Adjust image size to one pixel height, but unchanged width, with
interpolation 'none' and 'average when downsizing'. This should give you
the average intensity of the pixel columns.
- Process>Math>Multiply by the original image height (in physical units
such as microns) divided by 255. [because the mask has 255 as foreground
value]
- 'Select all' and create a profile (make sure that 'vertical profile is
not selected in Edit>Options>Plot Options). You can then list or save
the coordinates.

If it works, you can use the macro Recorder to make a macro from it. See
   https://imagej.nih.gov/ij/developer/macro/functions.html
for useful macro functions such as getPixelSize and getProfile().


Michael
________________________________________________________________
On 24/10/2017 10:07, acavaleiro wrote:

> Hello all,
>
> My problem should be relatively simple to solve, but was not able to find it
> or to find a solution on the forum. I have a coating that was cut and
> polished and prepared in cross-section. What i want to do is to measure the
> roughness of that coating using ImageJ in this cross-section image. Any
> thoughts on how this could be done?
>
> I tried to use the wand tool to define the outer part of the coating with
> success but then i need to take out the x,y values of only the wand
> selection cutter part. With this i might try to do a linear interpolation
> and afterwards measure the roughness. But i was not able to take out the
> coordinates of the wand selection.
>
> Any other thoughts?
>
> Thank all

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html