Effacer les filtres
Effacer les filtres

極座標系イメージを正​規座標系で表示するこ​とはできますか?

5 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 27 Juil 2012
極座標系 RGB カラー画像を正規座標系で表示しようと考えています。RGB は theta と rho の関数で与えてある場合、どのようにして正規座礁系で表示しますか?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 23 Jan 2020
Modifié(e) : MathWorks Support Team le 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
表面プロパティに関する更の詳細な情報を以下のページに記載しています。
正規座礁系から極座標系へ変換の場合、以下の関数をご参照ください。

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

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

Start Hunting!