getImagePlanes.m

버전 1.0.0.1 (1.29 KB) 작성자: Brett Shoelson
Conveniently extract individual z-planes (e.g., RGB) from an image or axes with one line.
다운로드 수: 283
업데이트 날짜: 2016/9/1

라이선스 보기

Extract individual planes from an MxNx3 image, or from an axis containing an MxNx3 image.

[R,G,B] = getImagePlanes(I)
Extracts the individual (color) planes from the MxNx3 image specified in I. I may be an image or an axes containing a single MXNx3 image.
I (finally) grew tired of typing:
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);
Now, it's just:
[r,g,b] = getImagePlanes(img);
or
[r,g,b] = getImagePlanes(gca);

instead! Simple, but useful!

인용 양식

Brett Shoelson (2024). getImagePlanes.m (https://www.mathworks.com/matlabcentral/fileexchange/47461-getimageplanes-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

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

Updated license

1.0.0.0