Search for Images in a video

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

Search for Images in a video

Peter Paul Arlinghaus
Hey everyone,

I need to find a way, to analyse all pictures from one
video relating to a selected area of pixels.

There is this special area of pixel(it's always at the
same spot). And they are eiter dark(for me it seems to be
black) or white.
Most of the time this area is dark, and for me, only the
sequences wehre the area turns white is important.

How can I analyse one special area concerning the color,
and then skip only to the pictures which have that white
area.
If there is no possibilty to skip directly, it would also
be enough to get a list, that shows at which frame the
area is white, so that I, myself can skip to that point.

I need this for my bachelor thesis. I took films of
fishes. During the filming I gave stimuli to the fishes,
and then analyse their reaction. Therefor a small light
diode is activetd simultan to the given stimulus. Thus,
only this moments are relevant for me.

Notice that the film is in avi and taken black/white. So
the only coulors are "white", "black" and grey.
I am using Ubuntu.
There are two pictures in the appendix which show my
"problem".

Thank you and best regards,

Peter

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

fisch1.png (891K) Download Attachment
fisch2.png (891K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Search for Images in a video

Straub, Volko A. (Dr.)
Hi Paul,

I don't know whether you solved your problem, but you could draw an ROI
on the region that changes colour and use a 'for - loop' to measure the
intensity of that area for every frame.
The macro code below will produce a list of the average grey value in
the ROI for each frame of your video in the results window:

run("Set Measurements...", "  mean redirect=None decimal=1");
for (i=1; i<nSlices+1; i++) {
     setSlice(i);
     run("Measure");
};

Hope this helps,
Volko

> Hey everyone,
>
> I need to find a way, to analyse all pictures from one video relating
> to a selected area of pixels.
>
> There is this special area of pixel(it's always at the same spot). And
> they are eiter dark(for me it seems to be black) or white.
> Most of the time this area is dark, and for me, only the sequences
> wehre the area turns white is important.
>
> How can I analyse one special area concerning the color, and then skip
> only to the pictures which have that white area.
> If there is no possibilty to skip directly, it would also be enough to
> get a list, that shows at which frame the area is white, so that I,
> myself can skip to that point.
>
> I need this for my bachelor thesis. I took films of fishes. During the
> filming I gave stimuli to the fishes, and then analyse their reaction.
> Therefor a small light diode is activetd simultan to the given
> stimulus. Thus, only this moments are relevant for me.
>
> Notice that the film is in avi and taken black/white. So the only
> coulors are "white", "black" and grey.
> I am using Ubuntu.
> There are two pictures in the appendix which show my "problem".
>
> Thank you and best regards,
>
> Peter
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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

Re: Search for Images in a video

Peter Paul Arlinghaus
Volko !! Thank you so so much. That was exactlywhat I
needed !

Bye Bye :)



On Fri, 5 Dec 2014 06:47:45 +0000
  Volko Straub <[hidden email]> wrote:

> Hi Paul,
>
> I don't know whether you solved your problem, but you
>could draw an ROI on the region that changes colour and
>use a 'for - loop' to measure the intensity of that area
>for every frame.
> The macro code below will produce a list of the average
>grey value in the ROI for each frame of your video in the
>results window:
>
> run("Set Measurements...", "  mean redirect=None
>decimal=1");
> for (i=1; i<nSlices+1; i++) {
>     setSlice(i);
>     run("Measure");
> };
>
> Hope this helps,
> Volko
>
>> Hey everyone,
>>
>> I need to find a way, to analyse all pictures from one
>>video relating to a selected area of pixels.
>>
>> There is this special area of pixel(it's always at the
>>same spot). And they are eiter dark(for me it seems to be
>>black) or white.
>> Most of the time this area is dark, and for me, only the
>>sequences wehre the area turns white is important.
>>
>> How can I analyse one special area concerning the color,
>>and then skip only to the pictures which have that white
>>area.
>> If there is no possibilty to skip directly, it would
>>also be enough to get a list, that shows at which frame
>>the area is white, so that I, myself can skip to that
>>point.
>>
>> I need this for my bachelor thesis. I took films of
>>fishes. During the filming I gave stimuli to the fishes,
>>and then analyse their reaction. Therefor a small light
>>diode is activetd simultan to the given stimulus. Thus,
>>only this moments are relevant for me.
>>
>> Notice that the film is in avi and taken black/white. So
>>the only coulors are "white", "black" and grey.
>> I am using Ubuntu.
>> There are two pictures in the appendix which show my
>>"problem".
>>
>> Thank you and best regards,
>>
>> Peter
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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