フィルターのクリア

I am having an image I want to rotate by 30,45 and 90 degree

2 ビュー (過去 30 日間)
Nithya SIvasamy
Nithya SIvasamy 2017 年 11 月 22 日
コメント済み: DGM 2024 年 6 月 6 日
If I use imrotate(),it enlarges the size of the image .Without enlarging the size of the image,the image has to be rotated in 30,45 and 90 degree.How to get this?
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 11 月 22 日
Is it acceptable that parts of the image will get cut off when rotated?
Is this just about how it shows up on the display? Rotating on the display without changing it is not difficult.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2017 年 11 月 22 日
Use imrotate(). There are options for enlarging or for clipping the corners that would rotate out of the original boundaries.
  1 件のコメント
DGM
DGM 2024 年 6 月 6 日
An example using non-default cropping and interpolation options:
inpict = imread('peppers.png');
outpict = imrotate(inpict,30,'bilinear','crop');
imshow(outpict)
Maybe you expected different padding color?
Maybe you wanted to rotate the image around a point other than the center?
imwarp() (R2013b+)
affine2d() (R2013b+)
rigid2d() (R2020b - R2022b)
rigidtform2d() (R2022b+)
Prior to R2013b, you'll have to look into imtransform() or just pad and use imrotate().

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by