help-octave
[Top][All Lists]
Advanced

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

Re: Image processing by pixel range


From: Andy Buckle
Subject: Re: Image processing by pixel range
Date: Mon, 26 Jul 2010 06:10:32 +0100

On Mon, Jul 26, 2010 at 1:29 AM, Rishi Bedi <address@hidden> wrote:
> Hi,
> I'd like to use Octave to process an image from my FireWire webcam --
> essentially, what I want to do is convert the image to black and white
> and then test the color of a small range of pixels (they'll be in the
> same place for every image, and will either be 100% black or 100%
> white). I'm going to use im2bw for the conversion, but I was trying to
> figure out what to do for the second part. Is there a way to use the
> bwarea function on only a specified x,y range? -- or, if not, what
> would you suggest to accomplish this?

Index your image array.

bwarea(im(y1:y2,x1:x2))

(check I got the x and y the right way round! its been a while since I
have worked on images myself in Octave)

-- 
/* andy buckle */


reply via email to

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