can u hhelp me by giving the syntax for making an intensity matrix from the given image...
Show older comments
Image=imread('D:\semester 3\matlab work\images\hand.jpeg');
imshow(image);
disp(image);
after executing it the command window shows its intensity values....i want to make the matrix from these intensity values... how can i do it????can u help me for the same???
i want to use these intensity values in my code...dats y......
Accepted Answer
More Answers (1)
vivek govind
on 23 Mar 2013
Edited: vivek govind
on 23 Mar 2013
To obtain pixel intensity values from an image and store it in an array , you can use this code, suppose i have a 75x75 image ,
gg=imread('D:\semester 3\matlab work\images\hand.jpeg');
for i=1:74,
for j=1:74,
P(i,j) = gg(i,j+1);
end
end
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!