How to display only a certain portion of an image?

3 vues (au cours des 30 derniers jours)
John
John le 13 Avr 2015
Hi,
I got this image as shown in figure. Now, I want is to display only a certain portion (I only want to show the middle part, ignoring the remaining outside parts) of this image. How can we do this?
I just want the green and blue parts but ignoring the outside red and orange part. I tried to use data cursor with the following line of code.
I tried following lines:
imagesc(abs(b1p(254:320,166:320)))
but all i get is blank image.
What is wrong with this line? or is there any other better way of doing this?
Thanks in advance!

Réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by