Resize N-D arrays and images

버전 1.3.0.0 (6.42 KB) 작성자: Damien Garcia
Y = RESIZE(X,newsize) resizes input array X using a discrete cosine transform.
다운로드 수: 3.1K
업데이트 날짜: 2014/10/12

라이선스 보기

Y = RESIZE(X,NEWSIZE) resizes input array X using a DCT (discrete cosine transform) method. X can be any array of any size. Output Y is of size NEWSIZE.
Input and output formats: Y has the same class as X.
As an example, if you want to multiply the size of an RGB image by a factor N, use the following syntax:
newsize = size(I).*[N N 1];
J = resize(I,newsize);

------
% Upsample and stretch an RGB image
I = imread('onion.png');
sizeJ = size(I).*[2 2 1];
J = resize(I,sizeJ);
sizeK = size(I).*[1/2 2 1];
K = resize(I,sizeK);
figure,imshow(I),figure,imshow(J),figure,imshow(K)

------
Enter "help resize" to obtain other examples.

인용 양식

Damien Garcia (2024). Resize N-D arrays and images (https://www.mathworks.com/matlabcentral/fileexchange/26385-resize-n-d-arrays-and-images), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

.

1.2.0.0

The functions IDCTN and DCTN are now in RESIZE

1.1.0.0

DCTN and IDCTN are now included, as requested

1.0.0.0