필터 지우기
필터 지우기

shifting image up by known number of pixels

조회 수: 2 (최근 30일)
michael
michael 2021년 7월 15일
댓글: KSSV 2021년 7월 15일
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?

채택된 답변

KSSV
KSSV 2021년 7월 15일
Do it by indexing.....Read about MATLAB array indexing.
  댓글 수: 2
michael
michael 2021년 7월 15일
Please elaborate more on this
KSSV
KSSV 2021년 7월 15일
A = magic(5) ; % demo matrix
A(3,3) = 0 ; % repalce 3,3 element with 0

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by