shifting image up by known number of pixels

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?

 Respuesta aceptada

KSSV
KSSV el 15 de Jul. de 2021

0 votos

Do it by indexing.....Read about MATLAB array indexing.

2 comentarios

michael
michael el 15 de Jul. de 2021
Please elaborate more on this
A = magic(5) ; % demo matrix
A(3,3) = 0 ; % repalce 3,3 element with 0

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Productos

Versión

R14SP2

Etiquetas

Preguntada:

el 15 de Jul. de 2021

Comentada:

el 15 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by