Login  Register

macro imagecalculator on image sequence

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

macro imagecalculator on image sequence

Sarah Badr
2 posts
        Hello,

       

        I am a beginner with imageJ.

       

        I want to create a macro using image calculator on an image sequence.

       

        Could I have some help with it please?

       

        Thank you

       

       

        Sarah

         


         


         


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

Re: macro imagecalculator on image sequence

Rainer M. Engel
169 posts
> Hello,
> I am a beginner with imageJ.
> I want to create a macro using image calculator on an image sequence.
> Could I have some help with it please?
> Thank you
> Sarah


Hello Sarah,

could you perhaps provide some more information in what way you want to
use the image calculator?
With a static image as reference, in the sequence with the preceding
frame (which adjacent frame)?

You could segment your task into smaller steps.

01: Importing an image sequence "getFileList(directory)"

02a: Loop through your calculations with image calculator
02b: Save new resulting images, make a measurement ...?

What's your plan, what shall become after using the image calculator,
what's the purpose of this processing, what is your aim?

This might help in helping you.


Best regards,
Rainer



--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorferstr. 143
D-13595 Berlin

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

Re: macro imagecalculator on image sequence

Jim Passmore-2
26 posts
In reply to this post by Sarah Badr
On Tue, Dec 18, 2012 at 9:34 AM, Sarah Badr <[hidden email]> wrote:

>         I am a beginner with imageJ.
>         I want to create a macro using image calculator on an image
> sequence.
>         Could I have some help with it please?


Sarah,
If you already know which menu items you would use (say, manually, on one
image), then start by giving the macro recorder a try.
Plugins>Macros>Record..." then look at the results.

If as a "beginner" you still aren't sure which functions you want to run,
then you should explore the documentation.  There is material to take you
as deep as you want to go at
http://imagej.nih.gov/ij/docs/index.html

and info specifically about writing macros (to help you tweak the macro you
record above) in the first few links at
http://imagej.nih.gov/ij/developer/index.html

If you do some reading, and "playing", then you can come back with specific
questions, and we'll be better able to help you.

Have fun!

*Jim Passmore*
Research Associate
Sealed Air Corporation

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

Re: macro imagecalculator on image sequence

Sarah Badr
2 posts
In reply to this post by Rainer M. Engel
        Hello Rainer,


        I made a video of small grains moving and I would like to look at their
displacement. Each record I made contains hundreds of pictures, thus a
macro is necessary.


        I thought I could :


        1 - import an image sequence from the original image sequence with a step
between them that can be choosen ;


        2- substract adjacent frames (imageA1=image2 - image1 ; ImageA2=image3 -
image2...) : I get white spots where something moved;


        3 - save ImageA1, ImageA2...


        4 - make one picture out of all the substracted ones (ImageA1,
ImageA2...).


        5 - a movie out of all the substracted ones (ImageA1, ImageA2...).


        4 and 5: to see the grain displacement with the white spots


         


        Thank you for your help


        Sarah


         


         


         


        Le Mar 18 décembre 2012 16:44, Rainer M. Engel a écrit :

        >> Hello,

        >> I am a beginner with imageJ.

        >> I want to create a macro using image calculator on an image
sequence.

        >> Could I have some help with it please?

        >> Thank you

        >> Sarah

        >>

        >

        >

        > Hello Sarah,

        >

        >

        > could you perhaps provide some more information in what way you want
to

        > use the image calculator? With a static image as reference, in
the

        > sequence with the preceding frame (which adjacent frame)?

        >

        > You could segment your task into smaller steps.

        >

        >

        > 01: Importing an image sequence
"getFileList(directory)"

        >

        >

        > 02a: Loop through your calculations with image calculator

        > 02b: Save new resulting images, make a measurement ...?

        >

        >

        > What&#39;s your plan, what shall become after using the image
calculator,

        > what&#39;s the purpose of this processing, what is your aim?

        >

        > This might help in helping you.

        >

        >

        >

        > Best regards,

        > Rainer

        >

        >

        >

        >

        > --

        > Rainer M. Engel, Dipl. Digital Artist

        > scientific|Media GbR Pichelsdorferstr. 143

        > D-13595 Berlin

        >

        >

        > --

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

        >

        >


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