極座標系イメージを正規座標系で表示することはできますか?
14 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jul 2012
Edited: MathWorks Support Team
on 22 Jan 2020
極座標系 RGB カラー画像を正規座標系で表示しようと考えています。RGB は theta と rho の関数で与えてある場合、どのようにして正規座礁系で表示しますか?
Accepted Answer
MathWorks Support Team
on 23 Jan 2020
Edited: MathWorks Support Team
on 22 Jan 2020
以下のように rho および theta が定義された場合の簡単な例を記載します。
rho =
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
0 0.2000 0.4000 0.6000 0.8000 1.0000
theta =
0 0 0 0 0 0
15 15 15 15 15 15
30 30 30 30 30 30
45 45 45 45 45 45
60 60 60 60 60 60
75 75 75 75 75 75
90 90 90 90 90 90
変換用のサンプルコードは以下の通りです。
[rho, theta] = meshgrid(0:0.2:1.0,0:15:90);
[X Y] = pol2cart(theta*pi/180,rho);
S = surf(X,Y,ones(size(X)));
Picture = imread('flowers.tif');
set(S,'FaceColor','Texturemap','CData',Picture);
view(2);
関数の詳細について MATLAB コマンドプロンプトにて以下同様に実行してください。
doc cart2pol
doc function_name
表面プロパティに関する更の詳細な情報を以下のページに記載しています。
正規座礁系から極座標系へ変換の場合、以下の関数をご参照ください。
0 Comments
More Answers (0)
See Also
Categories
Find more on 極座標プロット in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!