フィルターのクリア

Get Image Pixel Values

3 ビュー (過去 30 日間)
LOKESH
LOKESH 2011 年 11 月 26 日
Hello I am trying the values on image:
x=x+y;
y=x+2*y;
for all pixel values for an image,i want to get the pixel values do that i can verify the above equations.
code:
a=[1,1;1,2];
for i=1:m
for j=1:m
r=mod(a*[i;j],m);
ggg(i,j)=g(r(1),r(2));
PROBLEM:
g is original square image of size m in color but i get ggg in grayscale?
What problem exist? how to get the proper code
Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 11 月 26 日
ggg(i,j,:)=g(r(1),r(2),:);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by