Image Procassing Toolboxの例に​ある『レジストレーシ​ョンの前処理手順とし​ての位相相関の使用』​について

13 visualizaciones (últimos 30 días)
Natsumi Nakatani
Natsumi Nakatani el 16 de Dic. de 2019
Comentada: jashwanth vemula" el 12 de Abr. de 2023
Image Procassing Toolboxの例にある『レジストレーションの前処理手順としての位相相関の使用』を実行しています。
例に倣って下記のように入力しましたが、「cell型の入力引数の演算子*が未定義です」とエラーが出ます。
どのようにしたら良いか教えていただきたいです。
------------------------------------------------------------------------------------------------------------------------------------------------------
fixed = imread('cameraman.tif');
imshow(fixed)
theta = 170;
rot = [cosd(theta) sind(theta) 0;...
sind(theta) cosd(theta) 0;...
0 0 1];
sc = 2.3;
scale = {sc 0 0; 0 sc 0; 0 0 1};
sh = 0.5;
shear = [1 sh 0; 0 1 0; 0 0 1];
tform = affine2d(shear * scale * rot);
moving = imwarp(fixed,tform);
moving = moving + uint8(10 * rand(size(moving)));
imshow(moving)

Respuesta aceptada

Kenta
Kenta el 16 de Dic. de 2019
scale = [sc 0 0; 0 sc 0; 0 0 1];
こんにちは、scaleのところを上のように変更してください。{}はcell配列で入ります。行列として入力する場合は、[]などを用います。
  3 comentarios
Kenta
Kenta el 18 de Dic. de 2019
はい、ご報告ありがとうございました。無事解決し、よかったです。
jashwanth vemula"
jashwanth vemula" el 12 de Abr. de 2023
Thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 幾何学的変換とイメージ レジストレーション en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!