mean shift problem

  • Follow


Can anyone help me with this. I encounter an error after this command.
>>Mv = aviread('SampleVideo.avi',1:80);
rmin = 0; %min row value for search window
rmax = 0; %max row value for search window
cmin = 0; %min col value for search window
cmax = 0; %max col value for search window
numofframes = 0;
frameNo = 10; %starting frame
vidSize=[128 160]; %video size
centerold = [0 0];
centernew = [0 0];

M =Mv;

% get number of frames
numberofframes = length(M);

Frame1 = M(frameNo);
Image1 = imresize(Frame1.cdata,vidSize,'bilinear');

% get search window for first frame
[ cmin, cmax, rmin, rmax ] = select(Image1);

It show the following error. 

??? Undefined function or method 'select' for input arguments of type 'uint8'.

Error in ==> mean_shift at 27
[ cmin, cmax, rmin, rmax ] = select(Image1);

How can I solve it? Thank you.
0
Reply donny 12/14/2010 2:51:04 AM

You can solve it by defining the function select().  And, no, I don't
know the code for it.
0
Reply ImageAnalyst 12/14/2010 3:10:32 AM


ImageAnalyst <imageanalyst@mailinator.com> wrote in message <58c37cd4-957b-434b-9528-a849ab153901@z19g2000yqb.googlegroups.com>...
> You can solve it by defining the function select().  And, no, I don't
> know the code for it.



Do you mean that I need to write a program for the function select?
0
Reply donny 12/14/2010 3:54:05 AM

On Dec 13, 10:54=A0pm, "donny jason" <pooler_pool...@yahoo.com> wrote:
> ImageAnalyst <imageanal...@mailinator.com> wrote in message <58c37cd4-957=
b-434b-9528-a849ab153...@z19g2000yqb.googlegroups.com>...
> > You can solve it by defining the function select(). =A0And, no, I don't
> > know the code for it.
>
> Do you mean that I need to write a program for the function select?

------------------------------------------------------------------
Basically yes.  Well, not a whole program, just that one function that
you called "select" because it doesn't seem to be defined anywhere.
Or else get it from whomever wrote the rest of that code that you're
trying to run.  Select() does not seem to be a built in function, at
least it's not in any of the toolboxes that I own and it's not in the
basic MATLAB.
0
Reply ImageAnalyst 12/14/2010 4:10:26 AM

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <b758411f-dfb8-45f3-90f1-4dbf2ebbc94a@j25g2000yqa.googlegroups.com>...
> On Dec 13, 10:54 pm, "donny jason" <pooler_pool...@yahoo.com> wrote:
> > ImageAnalyst <imageanal...@mailinator.com> wrote in message <58c37cd4-957b-434b-9528-a849ab153...@z19g2000yqb.googlegroups.com>...
> > > You can solve it by defining the function select().  And, no, I don't
> > > know the code for it.
> >
> > Do you mean that I need to write a program for the function select?
> 
> ------------------------------------------------------------------
> Basically yes.  Well, not a whole program, just that one function that
> you called "select" because it doesn't seem to be defined anywhere.
> Or else get it from whomever wrote the rest of that code that you're
> trying to run.  Select() does not seem to be a built in function, at
> least it's not in any of the toolboxes that I own and it's not in the
> basic MATLAB.

I see. I understand what you mean already.Thanks for the information. It helps me a lot.
0
Reply donny 12/14/2010 5:48:04 AM

"donny jason" wrote in message <ie70ek$mei$1@fred.mathworks.com>...
> ImageAnalyst <imageanalyst@mailinator.com> wrote in message <b758411f-dfb8-45f3-90f1-4dbf2ebbc94a@j25g2000yqa.googlegroups.com>...
> > On Dec 13, 10:54 pm, "donny jason" <pooler_pool...@yahoo.com> wrote:
> > > ImageAnalyst <imageanal...@mailinator.com> wrote in message <58c37cd4-957b-434b-9528-a849ab153...@z19g2000yqb.googlegroups.com>...
> > > > You can solve it by defining the function select().  And, no, I don't
> > > > know the code for it.
> > >
> > > Do you mean that I need to write a program for the function select?
> > 
> > ------------------------------------------------------------------
> > Basically yes.  Well, not a whole program, just that one function that
> > you called "select" because it doesn't seem to be defined anywhere.
> > Or else get it from whomever wrote the rest of that code that you're
> > trying to run.  Select() does not seem to be a built in function, at
> > least it's not in any of the toolboxes that I own and it's not in the
> > basic MATLAB.
> 
> I see. I understand what you mean already.Thanks for the information. It helps me a lot.

hi sir can u tell me how are u implementing mean-shift algorithm what is the procedure ur following can u give an outline of the algorithm. if possible can u send the code u have implemented.
0
Reply usha 12/28/2010 3:59:07 AM

On Dec 27, 10:59=A0pm, "usha kiran peddala" <kiran8...@gmail.com> wrote:
> hi sir can u tell me how are u implementing mean-shift algorithm what is =
the procedure ur following can u give an outline of the algorithm. if possi=
ble can u send the code u have implemented.
-----------------------------------------------------------
Try this:
http://www.wisdom.weizmann.ac.il/~vision/courses/2004_2/files/mean_shift/me=
an_shift.ppt

0
Reply ImageAnalyst 12/28/2010 4:58:18 AM

6 Replies
426 Views

(page loaded in 0.074 seconds)

Similiar Articles:













7/22/2012 8:39:54 PM


Reply: