![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174030/image.jpeg)
How can I find maxima and minima points of intensity plot of one row of an image?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to plot intensity of single row of an MRI image, for that firstly I wrote -
i=dicomread('mri_7.dcm');
imshow(i)
improfile
from this I got intensity plot of any row or column. Now I want to find maximum and minimum values of that plot.So,please help me to get solution of this obstacle.
Thank you
0 commentaires
Réponse acceptée
Image Analyst
le 6 Déc 2013
Don't use i (the imaginary variable) as an image name or loop counter.
Try this:
oneRow = grayImage(myRow, :);
% Find the min and max
[minGL, indexOfMin] = min(oneRow)
[maxGL, indexOfMax] = max(oneRow)
See my demo, test.m, attached below in blue, which will generate the following figure.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174030/image.jpeg)
2 commentaires
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!