tcolor (a fast pcolor that likes RGB images)

버전 1.0.0.0 (951 Bytes) 작성자: Aslak Grinsted
Draws an image as a texture to a plane.
다운로드 수: 3.9K
업데이트 날짜: 2003/7/25

라이선스 없음

For use like pcolor but with c as a true color matrix (uses texturemap for speed)...

H=tcolor(x,y,c[,method])

valid methods are: 'corners','normal','triangles'

The normal method is texture mapping unto the plane given by x and y (which may be distorted arbitrarily)

The 'corners' method is the fastest way to draw. However it requires that the area is non-distorted... E.g. that the box defined by the corners defines the area.

The slowest method is 'triangles'... (sort of like pcolor). But shading interp works with it.

c=imread('C:\Projects\My Pictures\peppermint_girl.jpg');
[x,y] = meshgrid(1:size(im,2),1:size(im,1));
x=x+y/10; %skew the image
H=tcolor(x,y,c,'corners')

Aslak Grinsted - July 2003

인용 양식

Aslak Grinsted (2024). tcolor (a fast pcolor that likes RGB images) (https://www.mathworks.com/matlabcentral/fileexchange/3777-tcolor-a-fast-pcolor-that-likes-rgb-images), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R12.1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

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