help-octave
[Top][All Lists]
Advanced

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

Re: Problem loop for and image size


From: Andreas Weber
Subject: Re: Problem loop for and image size
Date: Sat, 22 Oct 2016 17:45:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

Am 22.10.2016 um 17:28 schrieb Julien563:

> I would like to know two things : 
> First of all, i have nr=1000, that's ok, but nc = 3000??? Look my pic : Size
> in blue : 1000*1000 so why the programm doesn't show me : nc=1000 and nr=
> 1000.
>
> A=imread('galaxy.jpg');
> r,nc]= size([A])

You are using "size" with two output args. See
[nr,nc]=size(ones(3,4,5))# This returns nc = 4*5 = 20
Use [nr,nc,channels]= size(A)

-- Andy



reply via email to

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