Output error in the grayscale
Show older comments
Hi have this code:
resRGB = HSVtoRGB(resHSV);
but i have this error:
Input error: please pass as input a vector variable with 3 elements with value in the range [0,1]
How do I have improve my code?
Answers (1)
yes,may be check the resHSV value,such as
resHSV = rand(10, 3)
size(resHSV)
rgb = hsv2rgb(hsv);
surf(peaks);
colormap(rgb);
colorbar
Categories
Find more on Image Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!