Re: Cropping an image in qt
There is no one function call you can make to do it. You need to apply an algorithm for detecting areas of similar color. Not much Qt can help you with here, the algorithm will be the same regardless of the technology you use.
Re: Cropping an image in qt
The method I used is creating a polygon from QPointF or QPolygonF and based from that polygon having the same shaped I want to clip the polygon created into the original image.
Re: Cropping an image in qt
Hi,
You can use OpenCV libraries to do this. Take a look at segmentation algorithms.
To use OpenCV with Qt there are a lot of posts about it, so use the search tool to view them.
Re: Cropping an image in qt
Is there a better way to d this using only whats in Qt itself?
I'll change my question, I need to clip a hexagon in the middle of an image.
Is that possible? I only see rectangle examples on the net.
Thx