shifting image up by known number of pixels

1 vue (au cours des 30 derniers jours)
michael
michael le 15 Juil 2021
Commenté : KSSV le 15 Juil 2021
Hi,
I have an image of 85*360*3. If I show it with imagesc, the Y axes will be between 0 to 85. I'd like to shift the whole image up to be with shift of 42 such that the 43 row of pixels would be 90.
Latter on I'll have to add some data on the image (in selected points) based on my analysis.
How can I do that?

Réponse acceptée

KSSV
KSSV le 15 Juil 2021
Do it by indexing.....Read about MATLAB array indexing.
  2 commentaires
michael
michael le 15 Juil 2021
Please elaborate more on this
KSSV
KSSV le 15 Juil 2021
A = magic(5) ; % demo matrix
A(3,3) = 0 ; % repalce 3,3 element with 0

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits


Version

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by