HOw to Extract image pixels and perform computation on it
- by gavishna
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.