octave-maintainers
[Top][All Lists]
Advanced

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

Re: type handling bug?


From: Levente Torok
Subject: Re: type handling bug?
Date: Tue, 26 May 2009 14:31:56 +0200
User-agent: KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; )


> > im =imread("p1020037.jpg" );
> > octave:10> sum(sum(im==0))
> > ans = 16980
> >
> >
> >
> > z=resize( im, s=rows(im)*columns(im),1 );
> > octave:11> sum(sum(z==0))
> > ans = 3144192
>
> My guess is that you image is an RGB image (all JPEG's are RGB, right?).
> This makes the image NxMx3, but you're treating it as being MxN. But I'm
> just guessing here.
Wrong.


octave:17> size(im)
ans =


1536 2048


Instead of
octave:18> size(im)
ans =


1536 2048 3


Other ideas?


L


--
Blogger of http://fapuma.blogspot.com




reply via email to

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