[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: conv2 shows error

From: Søren Hauberg
Subject: Re: conv2 shows error
Date: Wed, 06 Jul 2011 22:07:23 +0200


Please reply to the list so that others can follow and help (press
"Reply to All" instead of "Reply").

tor, 07 07 2011 kl. 01:15 +0530, skrev Junise Bin Abdul Nazar:
> On Thu, Jul 7, 2011 at 12:45 AM, Søren Hauberg <address@hidden> wrote:
> >
> > You did not specify the value of 'I' -- I assume you are not computing
> > the spatial average of the imaginary unit. My guess is that 'I' is an
> > image represented as an 'uint8' matrix. To use 'conv2' you need to cast
> > it into a 'double' matrix, i.e.
> >
> Ya I is an image represented as an 'uint8' matrix. It is as shown in
> your tutorial in the image processing section.

The actual type of the image depends on the actual data and on how it
was read into Octave.

> >  S = conv2 (double (I), ones (5, 5) / 25, "same");
> >
> > Alternatively, you can use the 'imfilter' function from the 'image'
> > package -- it takes care of types for you.
> Didn't get this as I am new to this.

I'm sorry but I do not understand: is this a question?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]