Image analysis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Image analysis

ImreBorsi
Hello!

Can someone please give me some tips about a project i have?
I got a binary picture of a metal foam. I need to measure the metal in
every pixel row. For  example: 7pixel black than 500pixel white etc. (cell
wall,) I need all these little sections to make a histogram. I tried in
imagej but i could only just measure the sum of the metal in a row, not
separately the sections.

Sorry for my bad english!

Thanks for the help!

Best regards,
Imre Borsi,
University of Debrecen, Hungary.

--
*Borsi Imre*



Sent with MailTrack
<https://mailtrack.io/install?source=signature&lang=en&referral=borsimi25@...&idSignature=22>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Image analysis

ImreBorsi
this code works on 1 line !!!

But does not with multiple lines in ROI!

Please help me !!

macro "line [v]"
{
run("Interpolate", "interval=1");
getSelectionCoordinates(x, y);
for(befi = 0,ai=0,i=0 ;i<x.length; i++)
{
        ix=round(x[i]);
        iy=round(y[i]);
        if (getPixel(ix,iy) == 0)
        {
                ai++;
                befi++;
        }
        else
        {
                ai=0;
        }
        if (ai == 0 && befi != 0)
        {
                print(befi);
                befi=0;
        }
}

Reply | Threaded
Open this post in threaded view
|

Re: Image analysis

jerie
Hi Imre,

On Mon, Jul 6, 2015 at 12:16 PM, ImreBorsi <[hidden email]> wrote:

> this code works on 1 line !!!
>
> But does not with multiple lines in ROI!
>
> Please help me !!
>

not sure if I understood the issue correctly, I would generate a mask with
odd & even striped rows, same size as your image. Use Process..Image
Calculator AND to generate an image containing signals on even stripes
separated by empty rows. On this image you can use analyze..count
particles. Then invert the mask an repeat.

Another approach (probably slower) would be to copy all rows to a new image
(similar to time-space-plot or kymograph), and place a '0' row between
copied rows. On this image you can again use analyze..count particles.

If that sounds feasible and you need help with implementation, let me know.

Cheers,
Jens

Dr. Jens Rietdorf, visiting scientist @ center for technological
development in health
http://br.linkedin.com/pub/jens-rietdorf/6/4a3/189/


On Mon, Jul 6, 2015 at 12:16 PM, ImreBorsi <[hidden email]> wrote:

> this code works on 1 line !!!
>
> But does not with multiple lines in ROI!
>
> Please help me !!
>
> macro "line [v]"
> {
> run("Interpolate", "interval=1");
> getSelectionCoordinates(x, y);
> for(befi = 0,ai=0,i=0 ;i<x.length; i++)
> {
>         ix=round(x[i]);
>         iy=round(y[i]);
>         if (getPixel(ix,iy) == 0)
>         {
>                 ai++;
>                 befi++;
>         }
>         else
>         {
>                 ai=0;
>         }
>         if (ai == 0 && befi != 0)
>         {
>                 print(befi);
>                 befi=0;
>         }
> }
>
>
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Image-analysis-tp5013423p5013432.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Jens Rietdorf Visiting Scientist Fundação Oswaldo Cruz - Ministério da Saúde, Centro de Desenvolvimento Tecnológico em Saúde (CDTS), Rio de Janeiro, Brasil.
Reply | Threaded
Open this post in threaded view
|

Re: Image analysis

Michael Schmid
In reply to this post by ImreBorsi
Hi Imre,

well, I don't have a solution to your problem, but I wonder whether this is a usual analysis for porous media like metal foam. There is a lot of literature on studying porous media via the correlation function, and there is also an ImageJ macro that can be used for that purpose (using some postprocessing, and assuming that your material is isotropic).
  http://imagejdocu.tudor.lu/doku.php?id=macro:radially_averaged_autocorrelation

Michael
________________________________________________________________
On Jul 4, 2015, at 17:18, Imre Borsi wrote:

> Hello!
>
> Can someone please give me some tips about a project i have?
> I got a binary picture of a metal foam. I need to measure the metal in
> every pixel row. For  example: 7pixel black than 500pixel white etc. (cell
> wall,) I need all these little sections to make a histogram. I tried in
> imagej but i could only just measure the sum of the metal in a row, not
> separately the sections.
>
> Sorry for my bad english!
>
> Thanks for the help!
>
> Best regards,
> Imre Borsi,
> University of Debrecen, Hungary.

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