help-octave
[Top][All Lists]
Advanced

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

Re: pixel conversion


From: Søren Hauberg
Subject: Re: pixel conversion
Date: Tue, 04 Aug 2009 08:52:45 +0200

man, 03 08 2009 kl. 22:51 -0700, skrev AGD:
> Is there a direct command to convert an entire matrix of 0's and 1's to 0's
> and 255's respectively?

B = 255 * A;

> And is there a way to invert the pixel values of 1 and 0 in the matrix?
> (32X32)

B = 1 - A;

Søren



reply via email to

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