I want to apply row and column projection on an image . please help me with a matlab code.

1 view (last 30 days)
I want to apply row and column projection on an image . please help me with a matlab code.

Answers (2)

Walter Roberson
Walter Roberson on 28 Nov 2015
max(YourImage) %one of the projections
max(YourImage,2) %the other projection

Image Analyst
Image Analyst on 28 Nov 2015
What do you want to project - the max or the sum or the mean?
verticalProfile = max(grayImage, 2);
verticalProfile = sum(grayImage, 2);
verticalProfile = mean(grayImage, 2);
horizontalProfile = max(grayImage, 1);
horizontalProfile = sum(grayImage, 1);
horizontalProfile = mean(grayImage, 1);
For other arbitrary angles you can use radon().

Categories

Find more on Biomedical Imaging in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!