Function to Image One Area of Video Over Time

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

Function to Image One Area of Video Over Time

dhdinh07
This post was updated on .
Hello,

I am new to ImageJ and was referred to this by my professor, who doesn't remember the name of the function that I need to use.

I have a 1474-frame long video and I want to select a region in the x-direction, say 100 px wide and 1 px long. I am looking for a function that can create an image that is 100 px wide by 1474 px long (1 pixel for every frame). In other words, the function shows how one area changes over time as an image.

Can ImageJ do this, and if so what is the function called?

Thank you so much.
Reply | Threaded
Open this post in threaded view
|

Re: Function to Image One Area of Video Over Time

Michael Schmid
On May 13, 2015, at 21:48, dhdinh07 wrote:

> I am new to ImageJ and was referred to this by my professor, who doesn't
> remember the name of the function that I need to use.
>
> I have a 1474-frame long video and I want to drag a horizontal line in the
> x-direction, say 100 px long. I am looking for a function that can create an
> image that is 100 px wide by 1474 px long (1 pixel for every frame). In
> other words, the function shows how one area changes over time as an image.
>
> Can ImageJ do this, and if so what is the function called?

Hi anonymous,

you can do the following:
- Open the video as (virtual) stack (obviously, this requires a format that ImageJ can read)
- Make a rectangular selection one pixel high
- Image>Crop
- Image>Stacks>Reslize with default settings

Michael

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

Re: Function to Image One Area of Video Over Time

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by dhdinh07
> On May 13, 2015, at 3:48 PM, dhdinh07 <[hidden email]> wrote:
>
> Hello,
>
> I am new to ImageJ and was referred to this by my professor, who doesn't
> remember the name of the function that I need to use.
>
> I have a 1474-frame long video and I want to drag a horizontal line in the
> x-direction, say 100 px long. I am looking for a function that can create an
> image that is 100 px wide by 1474 px long (1 pixel for every frame). In
> other words, the function shows how one area changes over time as an image.
>
> Can ImageJ do this, and if so what is the function called?

You're looking for the Image>Stacks>Reslice command. Open the video as a stack. Use the straight line tool to create a 100 pixel wide horizontal line selection. (Hold the sift key down to constrain the selection so that it horizontal.) Press “/“ (Image>Stacks>Reslice) and press “OK” in the dialog, using the default settings. The Reslice command will then create a 100x1474 image that shows how the video changes over time.

-wayne

> --
> View this message in context: http://imagej.1557.x6.nabble.com/Function-to-Image-One-Area-of-Video-Over-Time-tp5012835.html
> Sent from the ImageJ mailing list archive at Nabble.com.



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