HOw to Extract image pixels and perform computation on it
Posted
by gavishna
on Stack Overflow
See other posts from Stack Overflow
or by gavishna
Published on 2010-06-12T06:06:38Z
Indexed on
2010/06/12
6:12 UTC
Read the original article
Hit count: 236
matlab
What i want to do is extract the pixels into array A(i,j).Let A(i,j) represent the pixel in the ith row & jth colm of the image. Let B(i,j) be the transformed array containing bits such that B(i,j) = 1 if (A(i,j)/2^t) mod 2 =1, where t=0,1,2,3,4,5,6,7 = 0 otherwise
Then the array B(i,j) will be mutliplied by another array say C(i,j) representing another image. Then i want to plot the result of B*C as an image.
How do i take in the pixels for the above conditions for both gray and RGB color format.Also how do i solve the above problem.Any helo will be usefull because i am not an expert in image processing.
© Stack Overflow or respective owner