Transformation onto a fixed reference image

5 Ansichten (letzte 30 Tage)
Sakib Hossain
Sakib Hossain am 18 Nov. 2021
Kommentiert: Sakib Hossain am 29 Nov. 2021
Hello,
I want to apply a transformation to an image using this imwarp function. It seems to be able to read all the inputs B = imwarp(A, tform). The input image is 1140x800. However, the output image has different dimensions. I want the transformed output image to also have the same dimensions as the input image (1140x800). Is there any way to do so?

Akzeptierte Antwort

Matt J
Matt J am 18 Nov. 2021
Bearbeitet: Matt J am 18 Nov. 2021
  3 Kommentare
Matt J
Matt J am 18 Nov. 2021
Bearbeitet: Matt J am 18 Nov. 2021
I don't think there is a projective2dOutputView() utility, but you can always just use imref2d() to create your own OutputView specification.
Sakib Hossain
Sakib Hossain am 29 Nov. 2021
Hey Matt,
Thanks for your response. How would I set up the code using imref2d() for the centerOutput, followOutput, and sameAsInput under the imwarp function?
Ideally, all I need is to apply the transformation within a set bound of 1140x800. However, like I said before, once the transformation is applied, the output goes beyond these bounds. All the transformation are applied properly except for the translation/placement of the slice.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by