[Top][All Lists]

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

Re: imdilate in octave shows error

From: Sivahari Nandakumar
Subject: Re: imdilate in octave shows error
Date: Thu, 29 Nov 2012 23:46:47 +0530

The class of a is logical i think following modification will do it

b=logical([1 1 1;1 1 1;1 1 1]);


2012/11/29 Andy Buckle <address@hidden>
On 29 November 2012 08:25, preethi k <address@hidden> wrote:
hi all,

I am new to octave. Using imdilate function shows the following error.

error: imdilate: image and structuring element must have the same class

error: called from:

error: /usr/share/octave/packages/3.2/image-1.0.15/imdilate.m at line 36, col

umn 5

The program i executed is given below.




b=[1 1 1;1 1 1;1 1 1];



imshow(a),title('original image');

figure,imshow(a1),title('Dilated image');

figure,imshow(a2),title('erode omage');

The class of a will depend on the file. You can find out by adding

whos a

after imread. It will be uint8 or something. When you know you can adjust b to match. Something like this

b=uint8([1 1 1 ; 1 1 1; 1 1 1]);


Please help me.

Begging makes no difference. I find the help given depends on the quality of the request. Clarity, amount of info given etc.

/* andy buckle */

Help-octave mailing list

with warm regards
Sivahari Nandakumar
Appropriate Technology Promotion Society
Eroor, Vyttila 09446582917
      fighting for knowledge freedom

reply via email to

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