Thread Subject: Automatic Crop

Subject: Automatic Crop

From: Alex Jin

Date: 22 Mar, 2010 12:51:04

Message: 1 of 4

I have a video(the video is seperated to many frames) and i need to select a part of the image automatically(cropping it). It should be done automatically.

an example of the image is shown below
http://www.postimage.org/image.php?v=TskFOOJ

the part i want is in red. Please Help. Cheers

Subject: Automatic Crop

From: us

Date: 22 Mar, 2010 12:58:04

Message: 2 of 4

"Alex Jin" <limyijin@googlemail.com> wrote in message <ho7p3o$jl4$1@fred.mathworks.com>...
> I have a video(the video is seperated to many frames) and i need to select a part of the image automatically(cropping it). It should be done automatically.
>
> an example of the image is shown below
> http://www.postimage.org/image.php?v=TskFOOJ
>
> the part i want is in red. Please Help. Cheers

a hint:
- requires the img proc tbx

     help imcrop;

us

Subject: Automatic Crop

From: Alex Jin

Date: 22 Mar, 2010 13:57:03

Message: 3 of 4

"us " <us@neurol.unizh.ch> wrote in message <ho7pgs$q26$1@fred.mathworks.com>...
> "Alex Jin" <limyijin@googlemail.com> wrote in message <ho7p3o$jl4$1@fred.mathworks.com>...
> > I have a video(the video is seperated to many frames) and i need to select a part of the image automatically(cropping it). It should be done automatically.
> >
> > an example of the image is shown below
> > http://www.postimage.org/image.php?v=TskFOOJ
> >
> > the part i want is in red. Please Help. Cheers
>
> a hint:
> - requires the img proc tbx
>
> help imcrop;
>
> us

The position of the crop of each image will be different. The part i want to crop is lighter than the surrounding position. It automatically selects the part i want for different images.

Subject: Automatic Crop

From: Alex Jin

Date: 22 Mar, 2010 15:17:02

Message: 4 of 4

"Alex Jin" <limyijin@googlemail.com> wrote in message <ho7svf$1nm$1@fred.mathworks.com>...
> "us " <us@neurol.unizh.ch> wrote in message <ho7pgs$q26$1@fred.mathworks.com>...
> > "Alex Jin" <limyijin@googlemail.com> wrote in message <ho7p3o$jl4$1@fred.mathworks.com>...
> > > I have a video(the video is seperated to many frames) and i need to select a part of the image automatically(cropping it). It should be done automatically.
> > >
> > > an example of the image is shown below
> > > http://www.postimage.org/image.php?v=TskFOOJ
> > >
> > > the part i want is in red. Please Help. Cheers
> >
> > a hint:
> > - requires the img proc tbx
> >
> > help imcrop;
> >
> > us
>

I thought of doing this: finding the rgb value of the image. lets say the part that should be selected has a rbg value of 5, meaning once rgb value > then 5 is detected, the place should be cropped. I am new to matlab. Please Advice.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 22 Mar, 2010 08:59:09
rssFeed for this Thread

Contact us at files@mathworks.com