help-octave
[Top][All Lists]
Advanced

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

Re: Last Turn : Image Processing and Matrix values


From: Nicholas Jankowski
Subject: Re: Last Turn : Image Processing and Matrix values
Date: Wed, 26 Oct 2016 23:08:09 -0400

On Oct 26, 2016 5:10 PM, "Julien563" <address@hidden> wrote:
>

> But, currently, the new question is : How to apply a total pixel
> transformation in a same time (RGB) for each pixels?

You simply need to tell it to work with the other values. You should read up on how Octave handles indexing and arrays with dimension greater than 2.

No special functions needed. A(1,2,3) is the 1st row, second column, 3rd 'page'. Using : is like saying 'all' for that dimension. So, A(1,2,:) is like saying the 1st row, second column on all three pages.

B(1,2,:) = A(2,1,:) will put all the 2,1 pixel values into the 1,2 location in B.

Indexing a n-dimensïonal array with less than n-dimensions can cause strange results if you font know how Octave handles that, which may explain why you were getting odd image output results. Also, only getting a black and white image makes sense if you were only messing with one color page.


reply via email to

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