function for zooming an image with pixel replication

what is a function for an image in matlab to be zoomed in using pixel replication ? without using imresize and any loops. thanks

回答 (2 件)

ahmad amer alsaady
ahmad amer alsaady 2017 年 1 月 1 日
編集済み: Walter Roberson 2017 年 1 月 1 日

0 投票

hi my friend
i have a book in image processing by matlab and i see a code for this function the author use it to enlarge an image pixels the code is:
pixeldub( the part of image , number of enlarge)
for example to cute a part from an image(g) and enlarge it let say top left for:
gtop=g(1:120,1:120);% top left section
gtop=pixeldub(gtop,4); % enlarge by pixel duplication.
figure, imshow(gtop,[]);
i hope that help ..

1 件のコメント

Walter Roberson
Walter Roberson 2017 年 1 月 1 日
Source code for that function does not appear to be available.

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

Image Analyst
Image Analyst 2017 年 1 月 1 日

0 投票

Attached is a demo I got from the Mathworks that does this.

カテゴリ

ヘルプ センター および File ExchangeGeometric Transformation and Image Registration についてさらに検索

質問済み:

2016 年 2 月 9 日

回答済み:

2017 年 1 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by