- Use imread - output to load the image into Matlab and store it as a matrix - it can be anything between 2d and 4D matrix
- Dimension 1 and 2 of the matrix are width and height of the image in pixels
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
2 Comments
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/394138-how-compute-the-pixel-sum-for-image#comment_555533
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/394138-how-compute-the-pixel-sum-for-image#comment_555533
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/394138-how-compute-the-pixel-sum-for-image#comment_555536
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/394138-how-compute-the-pixel-sum-for-image#comment_555536
Sign in to comment.