Ask Your Question

sazr's profile - activity

2020-11-02 18:23:23 -0600 received badge  Popular Question (source)
2019-04-23 16:45:39 -0600 asked a question Calculate median/mode but ignore black colour

Calculate median/mode but ignore black colour In OpenCV Python, I have masked out parts of the image, thus they are blac

2019-04-22 16:59:37 -0600 asked a question Median value doesn't exist in the input list?

Median value doesn't exist in the input list? I have something weird going on, I am attempting to find the median colour

2019-04-19 00:22:35 -0600 asked a question Identify all values that are close to zero

Identify all values that are close to zero I have a numpy array and I am minusing a constant value from the array. I wan

2018-11-24 09:35:49 -0600 marked best answer Use cv::integral() on multi-channel image?

Can you use cv::integral on a BGR Mat? I want to calculate the integral image for each channel. Do I need to split the channels and call cv::integral for each channel or can I just use the function with a 3 channel Mat?

I am currently using this utility class that helps but I'm not sure if its made to handle multichannel Mats?

http://pi-virtualworld.blogspot.com/2...

2018-11-24 09:35:41 -0600 commented question Use cv::integral() on multi-channel image?

@berak thanks, is that link to an integral image correctly handling/calculating the variance and mean for a 3 channel im

2018-11-24 09:29:24 -0600 commented question Use cv::integral() on multi-channel image?

@berak, thats exactly what I am doing, reimplementing my algorithm using cv::integral instead of meanStdDev() to test if

2018-11-24 09:24:05 -0600 commented question Use cv::integral() on multi-channel image?

@berak In a video frame I am sliding a window over a 3 channel image and inspecting the variance under that window. If i

2018-11-24 09:23:35 -0600 commented question Use cv::integral() on multi-channel image?

@berak In a video frame I am sliding a window over a 3 channel image and inspecting the variance under that window. If i

2018-11-24 09:03:29 -0600 asked a question Use cv::integral() on multi-channel image?

Use cv::integral() on multi-channel image? Can you use cv::integral on a BGR Mat? I want to calculate the integral image

2018-11-16 03:18:00 -0600 commented question Get perimeter of pixels around centre pixel

@berak I would prefer the radius be variable if possible.

2018-11-16 03:12:51 -0600 commented question Get perimeter of pixels around centre pixel

@berak please see the updated post

2018-11-16 03:12:39 -0600 edited question Get perimeter of pixels around centre pixel

Get perimeter of pixels around centre pixel I am attempting to get a circle of pixels around a centre pixel. Ie, just li

2018-11-16 03:07:48 -0600 asked a question Get perimeter of pixels around centre pixel

Get perimeter of pixels around centre pixel I am attempting to get a circle of pixels around a centre pixel. Ie, just li

2018-11-07 10:05:50 -0600 asked a question Incorrect Mode Calculation or is this salt and pepper?

Incorrect Mode Calculation or is this salt and pepper? I have a very simple usecase, I am gridding an image and calculat

2018-10-22 07:25:25 -0600 asked a question cv2.matchTemplate using non-rectangular template?

cv2.matchTemplate using non-rectangular template? I have a specific kernel and I want to search an image/matrix and find

2018-10-04 04:09:51 -0600 asked a question Using gabor kernel to extract vertical lines results in black image

Using gabor kernel to extract vertical lines results in black image I understand the concept of the gabor kernel and how

2018-09-14 03:49:06 -0600 asked a question Understanding the effects of Gabor kernel parameters

Understanding the effects of Gabor kernel parameters In OpenCV you can create a Gabor kernel and specify some parameters

2018-09-12 02:48:32 -0600 asked a question Most accurate visual representation of Gradient Magnitude

Most accurate visual representation of Gradient Magnitude I know of a couple of ways to visually show the gradient magni

2018-09-07 09:25:29 -0600 edited question Implementing hysteresis: keep common edges between 2 images

Implementing hysteresis: keep common edges between 2 images I am attempting to implement hysteresis in OpenCV. I am almo

2018-09-07 09:20:56 -0600 edited question Implementing hysteresis: keep common edges between 2 images

Implementing hysteresis: keep common edges between 2 images I am attempting to implement hysteresis in OpenCV. I am almo

2018-09-07 09:19:27 -0600 edited question Implementing hysteresis: keep common edges between 2 images

Implementing Hystersis: keep common edges between 2 images I am attempting to implement hysteresis in OpenCV. I am almos

2018-09-07 09:18:35 -0600 asked a question Implementing hysteresis: keep common edges between 2 images

Implementing Hystersis: keep common edges between 2 images I am attempting to implement hysteresis in OpenCV. I am almos

2018-09-07 01:55:51 -0600 asked a question When should you use the Gabor Filter?

When should you use the Gabor Filter? In my learning I've come across a filter I've never heard of - the Gabor Filter. I

2018-09-07 01:17:46 -0600 asked a question Do you achieve anything different if you blur each channel independently?

Do you achieve anything different if you blur each channel independently? I saw in a tutorial (cant remember where the t

2018-08-17 05:33:31 -0600 commented question Difference between FloodFill and Watershed

Thanks I have looked into these but will look more closely. But there must be some succinct difference that an informed

2018-08-17 05:32:18 -0600 commented question Difference between FloodFill and Watershed

Thanks I have looked into these but will look more closely. But there must be some succinct difference that an informed

2018-08-17 04:51:33 -0600 asked a question Difference between FloodFill and Watershed

Difference between FloodFill and Watershed What is the difference between OpenCV's functions floodFill() and watershed?

2018-08-11 09:09:34 -0600 asked a question How does findChessboardCorners() find its corners

How does findChessboardCorners() find its corners I am attempting to detect right-angle corners in an image. I notice th

2018-08-09 03:09:16 -0600 commented question Gradient Directions: Shouldn't they range from 0-360 around a circles edge?

@LBerger Thanks, I should have double checked that silly mistake.

2018-08-09 03:06:51 -0600 edited question Gradient Directions: Shouldn't they range from 0-360 around a circles edge?

Gradient Directions: Shouldn't they range from 0-360 around a circles edge? I have the below image and I am inspecting t

2018-08-09 03:06:10 -0600 edited question Gradient Directions: Shouldn't they range from 0-360 around a circles edge?

Gradient Directions: Shouldn't they range from 0-360 around a circles edge? I have the below image and I am inspection t

2018-08-09 03:04:51 -0600 asked a question Gradient Directions: Shouldn't they range from 0-360 around a circles edge?

Gradient Directions: Shouldn't they range from 0-360 around a circles edge? I have the below image and I am inspection t

2018-08-07 09:02:53 -0600 asked a question Sliding a window with cavities over an image

Sliding a window with cavities over an image Often I need to slide a window across an image. But the window has cells I

2018-07-25 02:39:01 -0600 commented question Watermarking Images: preserve quality, control opacity

@berak my understanding is that the png is loaded/read in as a 4 channel Mat where the 4th channel is the alpha. So I am

2018-07-25 02:24:11 -0600 asked a question Watermarking Images: preserve quality, control opacity

Watermarking Images: preserve quality, control opacity I set myself a task to create a simple OpenCV program to watermar

2018-07-20 03:19:10 -0600 asked a question Drawing Gradient Directions

Drawing Gradient Directions I have created some code to visually display the average gradient direction in a cell/kernel

2018-07-14 03:41:53 -0600 edited question Visually display gradient direction

Visually display gradient direction I have computed the gradient magnitude and gradient direction for an image. Whats an

2018-07-14 03:40:29 -0600 asked a question Visually display gradient direction

Visually display gradient direction I have computed the gradient magnitude and gradient direction for an image. Whats an

2018-07-12 05:14:42 -0600 commented question Critique my SSD implementation: is it correct?

Generally, this is my practical application of my learning. I have learnt the theory of SSD and now I am implementing it

2018-07-12 02:41:15 -0600 commented question Critique my SSD implementation: is it correct?

@berak thanks. Is there a difference between Sum of Squared Errors, Sum of Squared Differences and Mean Squared Error?

2018-07-12 02:23:18 -0600 edited question Critique my SSD implementation: is it correct?

Critique my SSD implementation: is it correct? I have implemented sum of squared differences in C++. Is my code correct,

2018-07-12 02:16:58 -0600 asked a question Critique my SSD implementation: is it correct?

Critique my SSD implementation: is it correct? I have implemented sum of squared differences in C++. Is my code correct,

2018-07-10 04:07:14 -0600 asked a question Can an Integral Image assist in producing histograms?

Can an Integral Image assist in producing histograms? I am reading 'OpenCV Computer Vision Application Programming Cookb

2018-06-29 14:25:05 -0600 asked a question Structuring Element or Morphological Op to extract thick lines?

Structuring Element or Morphological Op to extract thick lines? Is the a morphological operation I can use to preserve m

2018-06-25 07:49:06 -0600 asked a question Extract blobs that intersect between 2 images

Extract blobs that intersect between 2 images In OpenCV, how would I be able to extact all the blobs in image A that col

2018-06-10 08:52:42 -0600 received badge  Organizer (source)
2018-06-10 08:51:07 -0600 asked a question Ways to measure homogeneity between images

Ways to measure homogeneity between images In computer vision, what are technique/algorithms/ways to measure the homogen

2018-06-10 08:40:06 -0600 asked a question Make Descriptor Matcher more discrimatory?

Make Descriptor Matcher more discrimatory? So I've tried out my idea of using cv::BFMatcher to find matches between my c

2018-06-09 11:20:37 -0600 marked best answer Detecting Matches results in error about masks?

When I attempt to get the matches between 2 key descriptor lists I get the following error:

OpenCV Error: Assertion failed (masks.size() == imageCount) in cv::DescriptorMatcher::checkMasks, file C:\build\master_winpack-build-win64-vc14\opencv\modules\features2d\src\matchers.cpp, line 617

I'm unsure what I am doing wrong? The error occurs when I call cv::BFMatcher::match() and I am not passsing any masks into the function. Any idea what the issue could be?

My code is:

std::vector<Mat> descriptors1, descriptors2;

descriptors1.push_back(Mat({
    174.483, 19.170, 12.503, 10.454, -81.230, 0.003765
}).reshape(1));

descriptors2.push_back(Mat({
    137.942, 24.953, 31.512, 27.309, -69.655, 0.000575
    }).reshape(1));
descriptors2.push_back(Mat({
    133.888, 14.031, 18.080, 13.974, -114.655, 0.00191
    }).reshape(1));
descriptors2.push_back(Mat({
    165.547, 36.802, 19.982, 34.661, 28.909, 0.000625
    }).reshape(1));
descriptors2.push_back(Mat({
    188.496, 19.021, 10.202, 8.445, -78.267, 0.005702
    }).reshape(1));
descriptors2.push_back(Mat({
    192.788, 23.360, 14.752, 20.407, 89.840, 0.001577
    }).reshape(1));
descriptors2.push_back(Mat({
    182.088, 29.258, 17.928, 28.822, 74.453, 0.000868
    }).reshape(1));
descriptors2.push_back(Mat(std::vector<double>{
    161.119, 34.396, 19.787, 22.862, 91.313, 0.001094
    }).reshape(1));
descriptors2.push_back(Mat({
    159.954, 17.733, 14.422, 11.519, -83.997, 0.002935
}).reshape(1));

cv::BFMatcher matcher(NORM_L2);
std::vector<cv::DMatch> matches;
matcher.match(descriptors1, descriptors2, matches);