当前位置:网站首页>Drawing HSV color wheel with MATLAB
Drawing HSV color wheel with MATLAB
2022-07-05 21:40:00 【slandarer】
% Generate grid
tList=linspace(0,2.*pi,300);
rList=linspace(0,1,100);
[theta,R]=meshgrid(tList,rList);
% The angle and radius are converted into coordinates
X=cos(theta+pi).*R;
Y=sin(theta).*R;
Z=zeros(size(X));
% structure hvs surface (nx3) And converted to rgb surface
thetaV=theta(:);RV=R(:);
hsvList=[thetaV./2./pi,ones(size(RV)),RV];
rgbList=hsv2rgb(hsvList);
% Turn it into a matrix triplet
C=zeros([size(X),3]);
C(:,:,1)=reshape(rgbList(:,1),size(X));
C(:,:,2)=reshape(rgbList(:,2),size(X));
C(:,:,3)=reshape(rgbList(:,3),size(X));
% surf mapping
surf(X,Y,Z,'EdgeColor','none','CData',C)
axis([-1,1,-1,1]);axis equal
view(0,90);
边栏推荐
- Golang (1) | from environmental preparation to quick start
- oracle 控制文件的多路复用
- leetcode:1755. Sum of subsequences closest to the target value
- sql常用语法记录
- Simple interest mode - lazy type
- selenium 查找b或p标签的内容
- selenium 获取dom内验证码图片
- "Grain mall" -- Summary and induction
- MMAP
- Realize the function of verifying whether the user has completed login when browsing the page
猜你喜欢
华为快游戏调用登录接口失败,返回错误码 -1
EBS Oracle 11g 克隆步骤(单节点)
Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
Scenario interview: ten questions and ten answers about distributed locks
PVC plastic sheets BS 476-6 determination of flame propagation properties
张丽俊:穿透不确定性要靠四个“不变”
Opérations de lecture et d'écriture pour easyexcel
资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌
华为联机对战如何提升玩家匹配成功几率
Making global exception handling classes with aspect
随机推荐
Cold violence -- another perspective of objective function setting
Some common processing problems of structural equation model Amos software
Oracle检查点队列–实例崩溃恢复原理剖析
初级软件测试必问面试题
Get JS of the previous day (timestamp conversion)
854. 相似度为 K 的字符串 BFS
Teach yourself to train pytorch model to Caffe (III)
华为游戏多媒体服务调用屏蔽指定玩家语音方法,返回错误码3010
Parker驱动器维修COMPAX控制器维修CPX0200H
Incentive mechanism of Ethereum eth
[daily training] 729 My schedule I
2022-07-03-cka- latest feedback from fans
Four components of logger
第05章_存储引擎
怎么利用Tensorflow2进行猫狗分类识别
ESP32
Deployment of Jenkins under win7
深信服X计划-网络协议基础 DNS
Robot operation mechanism
int GetMonth( ) const throw( );后面的throw( )什么意思?