I try to crop an image/take a part of an image, but I can´t figure out how to do. can anybody give me a tip?
thanks a lot!
Best regard, matthias
With open Cv I think the values are in whole pixels rather than a ratio (-1,1), but what does the error say?
yes, that was the point. It is somestimes realy confusing, how to operate with the different kind of nodes. Do you know if there is a similiar cropping-possibility in skia? That woul be nice, because I suppose for some cases the skia pipeline is more suitable. What do you think?
You’re welcome Matthiasy,
It may not be perfect but take a look at the ‘panels’ example for Skia in the help browser
in Skia if you just want to draw a part of an Image or any Layer (!), you can use
ClipPath. Please type
clip in the Helpbrowser to get some examples on that.
ClipRect works like that:
We will also add a new
Crop node with the next release, which will return a new cropped SKImage.
Crop (Relative) for SKImage.
Please test it in the current previews.