Filter löschen
Filter löschen

How to manually set axis and Label for colorcloud funktion?

1 Ansicht (letzte 30 Tage)
Dominic Wiehl
Dominic Wiehl am 2 Feb. 2023
Beantwortet: Raghvi am 16 Feb. 2023
Helo everyone! I'm new to MatLab and recently I was working with the colorcloud funktion. I was trying to generate a 'HSV' point cloud figure to analyze saturation and hue shift between images (and also to have a nice visual representation). I am viewing the image from above, so on the X and Y axis. Now I realised that the cone is made up of 8 axis instead of 6 for (R,G,B,Cy,My,Ye). So I was wondering if there is a way to manipulate the axis of the HSV cone to achive the representation I got in the image I provided here (maybe also with labels)
Thank you very much in advance!

Antworten (1)

Raghvi
Raghvi am 16 Feb. 2023
Hey Dominic,
You can access different properties of axes by using the following commands and changing them as per your need. The following code shows how to change the perspective of the colorcloud to get the top view.
>> x=colorcloud(RGB,'hsv');
>> x.Children.CameraPosition=[0 0 8];
Likewise, you can change other properties to get the labels you desire. Check out the properties of axes :
If you are not so comfortable with code, you can also play with property inspecter in the figure window.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by