An enhanced version of matlab's built-in function 'imcrop', supporting rotated rectangles
Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
Image Rotated Rectangle Crop
An enhanced version of matlab's built-in function imcrop, supporting rotated rectangle crop.
Example
srcImg = imread('peppers.png');
cropRect = [260,200,80,200,pi/4];% [centerX,centerY,width,height,yaw]
% crop rotate rectangle image
cropedImg = imgCrop(srcImg,cropRect);
% show result
rect = [cropRect(1:4),cropRect(5)*180/pi];
verticles = getVertices(rect);
p = polyshape(verticles(:,1),verticles(:,2));
figure;imshow(srcImg);hold on; plot(p);title('origin image');figure;imshow(cropedImg);title('cropped image')Zitieren als
xingxingcui (2026). Image Rotated Rectangle Crop (https://github.com/cuixingxing150/imageRectCrop/releases/tag/v1.0.1), GitHub. Abgerufen .
Allgemeine Informationen
- Version 1.0.1 (445 KB)
-
Lizenz auf GitHub anzeigen
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 1.0.1 | See release notes for this release on GitHub: https://github.com/cuixingxing150/imageRectCrop/releases/tag/v1.0.1 |
||
| 1.0.0 | |||
| 0.0.1 | See release notes for this release on GitHub: https://github.com/cuixingxing150/imageRectCrop/releases/tag/v0.0.1 |
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.


