help-octave
[Top][All Lists]
Advanced

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

Re: Image processing


From: Erika Bueno
Subject: Re: Image processing
Date: Fri, 11 Jun 2010 10:07:14 -0300

Got it, thanks :)

And what if there's no third number? Do I have to assume anything special?

2010/6/11 Moo <address@hidden>:
> Erika - the third number is the third "dimension" of the image, which is
> number of channels in your image.  So for example, in a greyscale image or
> an indexed image the number should be 1.  In some color images (it has to do
> with the file format; .jpg, .png, etc), the third number is 3, indicating
> red, green, and blue (RGB) channels.  The only other number you might see is
> 4, indicating cyan, yellow, magenta, black (CMYK) channels.
>
> Keep in mind that, depending on what you're actually doing to "compare" the
> images, you might have to take that into account.  I can't go into the
> details, but if you know specifically what you're going to do I could
> probably help.
>
> On Fri, Jun 11, 2010 at 2:30 PM, Erika Bueno <address@hidden> wrote:
>>
>> I made what you explained with a GIF image and when I use size(myimg),
>> it shows three numbers. The first and the second are rows and columns,
>> what is the third number?
>>
>> Thanks again :)
>>
>> 2010/6/9 Erika Bueno <address@hidden>:
>> > Thanks, Soren! I'm gonna try this in the morning, when I get to the
>> > lab and I'll tell you if I got it :)
>> >
>> > Good night! :)
>> >
>> > 2010/6/9 Søren Hauberg <address@hidden>:
>> >> ons, 09 06 2010 kl. 02:39 -0300, skrev Erika Bueno:
>> >>> I'm gonna try :)
>> >>>
>> >>> I read the image, just like you explained me to do. It works.
>> >>>
>> >>> I know the image is saved in the variable "i" as a matrix, right?
>> >>>
>> >>> Ok. But I don't know the size of the matrix. So, how can I work with
>> >>> something that I don't know its extension?
>> >>>
>> >>> My project is to read a couple of images and, then, compare then. To
>> >>> do this, I gotta read the images and work with its variables as
>> >>> matrices.
>> >>>
>> >>> Got it now? :)
>> >>
>> >> Yes I think I got it, thanks :-)
>> >>
>> >> To get the size (or extension as you call it), simply call
>> >>
>> >>  size (I)
>> >>
>> >> this will be a vector with the number of rows in the image on the first
>> >> place and the number of columns in the second place.
>> >>
>> >> Søren
>> >>
>> >>
>> >
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>



reply via email to

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