Margincrop

버전 1.0.0.0 (1.58 KB) 작성자: Jurgen
Simple way of cropping images by specifying the amount of pixels to be cut away from the edges.
다운로드 수: 301
업데이트 날짜: 2013/1/14

라이선스 보기

Simple way of cropping images by specifying the amount of pixels to be cut away from the image edges.

Of course imcrop exists, but I'm not a fan of using the rectangle syntax.
So why this?
- Fast
- Practical syntax (for me at least)
- Can handle higher dimensions
- Couldn't find anything similar on FEX with expected tags

Crops along the first 2 dimensions, e.g.:

I = imread('peppers.png'); %rgb image
J = margincrop(I,[10 20],[100 100]);
subplot(1,2,1);imshow(I);
subplot(1,2,2);imshow(J);

Feedback is welcome.

인용 양식

Jurgen (2024). Margincrop (https://www.mathworks.com/matlabcentral/fileexchange/39849-margincrop), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

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