2020-11-13 12:14:43 -0600 | received badge | ● Popular Question (source) |
2016-08-30 12:40:04 -0600 | received badge | ● Scholar (source) |
2016-08-30 12:39:52 -0600 | received badge | ● Supporter (source) |
2016-08-30 12:39:49 -0600 | commented answer | Python's Numpy.transpose by axes equivalent for cv::Mat? That has done the trick! Thanks a lot mate. |
2016-08-30 10:14:51 -0600 | received badge | ● Critic (source) |
2016-08-30 10:14:34 -0600 | commented answer | Python's Numpy.transpose by axes equivalent for cv::Mat? I have tried it with im = [im, im, im] as you suggested but it didn't work. I have also tried to use mixChannels as you have suggested but I don't seem to be able to manage to make it work. Looking at the description on the tutorial given here, I understand that this code feathers the edge of the mask outwards by 11 pixels. But I don't seem to be able to get the same effect in C++. Any further suggestions? |
2016-08-30 09:57:15 -0600 | commented question | OpenCV / C++: Adding feather to the content of a shape in cv::Mat I have tried this but no luck! int FEATHER_AMOUNT = 60; cv::Size blurSize = cv::Size(FEATHER_AMOUNT, FEATHER_AMOUNT); cv::resize(outputImage, outputImage, cv::Size(outputImage.rows + FEATHER_AMOUNT * 2, outputImage.cols + FEATHER_AMOUNT * 2)); outputImage = outputImage(cv::Rect(FEATHER_AMOUNT, FEATHER_AMOUNT, outputImage.rows - FEATHER_AMOUNT * 2, outputImage.cols - FEATHER_AMOUNT * 2)); cv::GaussianBlur(outputImage, outputImage, blurSize, 0); |
2016-08-30 08:19:12 -0600 | asked a question | OpenCV / C++: Adding feather to the content of a shape in cv::Mat Hi there I have an image (irregular shaped) in some part of a cv::Mat object (cv::Mat(750, 750, CV_8UC4)) I would like to add 15px wide feather to around the shape in the cv::Mat object with some blur effect. Please note that I don't want to add blur to the shape itself. I need it added to the outside of the shape. If you could please help me to achieve that, that would be much appreciated. Hope the question makes sense. Cheers |
2016-08-29 17:49:45 -0600 | asked a question | Python's Numpy.transpose by axes equivalent for cv::Mat? Hi there I'm trying to translate the below Python code that uses numpy arrays into C++ and use cv::Mat instead of numpy: def get_face_mask(im, landmarks): im = numpy.zeros(im.shape[:2], dtype=numpy.float64) (Full source code can be seen here) I'm finding it a bit difficult to understand what the below lines does: im = numpy.array([im, im, im]).transpose((1, 2, 0)) I don't seem to be able to find the equivalent of this in OpenCV C++ version. Any help would be much appreciated. |