필터 지우기
필터 지우기

Fix a colormap between two values

조회 수: 4 (최근 30일)
Thomas Barbier
Thomas Barbier 2019년 6월 26일
댓글: Adam Danz 2019년 6월 26일
Dear all,
I am trying to simulatine the imaging of an object from a camera and a depth sensor. I'd then like to plot the simulated image thanks to the scatter tool, specifying depth as colormap. I make a new image at each time step. The camera motion is towards the object (and the object rotates), hence the overall depth diminishes. However, at each time step the colobar is mapped from depth of that time step:
At t = 0:
At t = end:
A video is available: https://youtu.be/ZlcGmUe4qoE
I would like to "fix" the colorbar between two handpicked values [depthMin depthMax], so that the first image is generally blue and the last image is generally yellow (that the colorbar doesn't "slide"). And if possible I'd like to use Matlab embedded colormaps.
Do you know a trick to do that ?
Thanks for your help.
Regards

채택된 답변

Adam Danz
Adam Danz 2019년 6월 26일
"I would like to "fix" the colorbar between two handpicked values [depthMin depthMax], so that the first image is generally blue and the last image is generally yellow "
caxis([depthMin, depthMax])
  댓글 수: 2
Thomas Barbier
Thomas Barbier 2019년 6월 26일
True heroes don't wear capes.
Thanks!
Adam Danz
Adam Danz 2019년 6월 26일
I'm wearing a lab coat. Does that count?
Glad I could help!

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by