Hallo,
gibt es die Möglichkeit, ein Bild unter einem bestimmten Winkel in Matlab auszuschneiden?
Z.B. mithilfe von dem Befehl "imcrop" oder sowas ähnliches.
Danke im voraus
Eva
dafür kannst Du die Befehle imfreehand,roipoly und poly2mask anwenden. Bei poly2mask kannst Du Eckpunkte vorgeben. Einen Winkel kannst Du nach meinem Wissen nicht vorgeben.
Ich habe im Internet folgendes im Bezug auf mein Problem gefunden:
Yes. You simple use maketform() and pass it your actual points, and
your desired points which would warp your quadrilateral into a perfect
rectangle aligned with the rows and columns. Then call tformfwd() to
apply your transformation matrix to your image. Now your
quadrilateral is aligned with the rows and columns. Then you simply
use imcrop() to copy the desired rectangular portion into a new image
array.
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.