How to split cross an image ?
Hello everyone,
I want to split an image, like this;
Can you help me ?
Thanks in advance.
Hello everyone,
I want to split an image, like this;
Can you help me ?
Thanks in advance.
Well, you cannot have a non-rectangular image. Still, it is possible to create an image with the left part and another one with the right part.
Mat mask; // put here a binary mask (0's and 1's) of the left area
Mat image; //your original image
Mat leftpart,rightpart;
image.copyTo(leftpart,mask);
image.copyTo(rightpart,1-mask);
Asked: 2020-04-18 11:02:25 -0600
Seen: 221 times
Last updated: Apr 19 '20
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary