how to make a colorwheel in matlab?

조회 수: 9 (최근 30일)
Maryam
Maryam 2014년 9월 23일
댓글: Image Analyst 2014년 10월 4일
Hello
I want to make a ColorWheel in matlab, sorry for asking simple question. I am not fluent in matlab and I don't know how we can make a colorwheel in matlab. Whould you please indicate me?
  댓글 수: 2
John D'Errico
John D'Errico 2014년 9월 23일
You should read this:
Not being fluent is not a problem. But you need to make some effort.
Maryam
Maryam 2014년 9월 23일
yes!but i did not find the answer

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

답변 (2개)

Image Analyst
Image Analyst 2014년 9월 23일
See my attached demo, below the image. It makes a number of figures, including the one below.
If you want to mask it so that it's circular, create a circular mask like in the FAQ
Other color demos are in my File Exchange including one to synthesize an X-rite Color Checker Chart.
  댓글 수: 2
Maryam
Maryam 2014년 10월 3일
Many thanks for your reply in advance, I want to display a page to my subjects in psychtoolbox,this page must have a static wheel which show them hue(by degree between 0to360)and saturation(changing 0to100), and also a bar witch is consist of brightness(0to100). I want to have a patch(dynamic patch)above to this page.Each tome that subjets click on wheel and bar color of this patch must change and show his percept color.I mean i want to show static whell for heu and saturation and bar for brightness and dynamic patch for showing all perceptive color. Would you please help me for writing the code?result must be something like we can see in photoshope. Many thanks
Image Analyst
Image Analyst 2014년 10월 4일
I don't understand what you said. What's wrong with what I've provided above? I have attached another demo for color wheel. If that's not what you want either, then please try to get another English speaker to proofread what you wrote, because it does not make sense to me. I don't know what a dynamic patch is. I don't understand at all what this sentence means: "Each tome that subjets click on wheel and bar color of this patch must change and show his percept color.I mean i want to show static whell for heu and saturation and bar for brightness and dynamic patch for showing all perceptive color."
You can use ginput() to have the user click on a point in an image. That's about all I can think of to say after reading that.

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


David Young
David Young 2014년 9월 23일
The functions you need are meshgrid, atan2 and hsv2rgb. Possibly also hypot if you want to make the centre bright or dark.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by