imagepatch

버전 1.0.0.0 (2.75 KB) 작성자: DS
Paste one image over another with an offset, expanding first image as necessary.
다운로드 수: 1.6K
업데이트 날짜: 2007/7/6

라이선스 보기

Simple function to write one image matrix over another using a given "origin" pixel and an offset vector. If the pasted image extends beyond the bounds of the base image, the base image is padded using the built-in function PADARRAY.

I = imagepatch(image1,image2,...
[originx originy],[offsetx offsety]) returns a new image containing image1 overwritten by image 2 at the location
specified by the offset and origin coordinates.

[I origin] = imagepatch(im1,im2,...
[origin_x origin_y],[offset_x offset_y])
returns a new image, I, and a vector, origin, containing the pixel coordinates corresponding to the origin in the new image.

I = imagepatch(im1,im2,...
[origin_x origin_y],...
[offset_x offset_y],padval)
returns a new image, where padval specifies the padding value used by
PADARRAY if it is necessary to expand im1 to accomodate im2 at the offset
coordinates.

Example:
moon = imread('moon.tif');
pout = imread('pout.tif');
%origin at center
origin = round(flipdim(...
size(moon),2)./2);
offset = [200 250];
imshow(...
imagepatch(moon,pout,origin,offset));

인용 양식

DS (2024). imagepatch (https://www.mathworks.com/matlabcentral/fileexchange/15518-imagepatch), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Images에 대해 자세히 알아보기
도움

줌: Patchwork

Community Treasure Hunt

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

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