필터 지우기
필터 지우기

Issue with getframe()

조회 수: 3 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2024년 1월 26일
댓글: Turbulence Analysis 2024년 1월 26일
I am saving the images generated inside the for loop using getframe () command. I have the following two issues.
  1. I couldn't change the colormap
  2. As shown in the image, double tick marks are appearing on the axis values
Any idea how to get rid of this?

답변 (1개)

Walter Roberson
Walter Roberson 2024년 1월 26일
The image is RGB; you cannot change the colormap on RGB images.
The image has tick marks drawn into it. When you image() or imagesc() it, the axes gets drawn including tick marks for the axes, which do not happen to line up with the tick marks that are part of the image. If you imshow(x3) then the axes will not be drawn.
  댓글 수: 1
Turbulence Analysis
Turbulence Analysis 2024년 1월 26일
Ok got it..
For instance, in the attached mat file, I have time stamp (in microseconds) of the image data stored in array ts and arrays x,y and I contains x,y co-ordinats and intensity.
I need to accumulate the data over 200 microseconds to create each image.
E.g, for the first first image (i.e. rows 1 to 4533 --> 69142-68942 = 200 microseconds) and for next image, I have to sum up another 200 micro seconds (i.e. 69143 to 69343) reprsented by rows 4533 - 8829
If I directly save the image, then I guess that won't be a RGB, in this way I can chnage the colro map.
Please share your suggestions

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

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by