Questions tagged [mser]

In computer vision, maximally stable extremal regions (MSER) are used as a method of blob detection in images.

This technique is used to find correspondences between image elements from two images with different viewpoints. This method of extracting a comprehensive number of corresponding image elements contributes to the wide-baseline matching, and it has led to better stereo matching and object recognition algorithms.

63 questions
1
vote
1 answer

Cluster non-zero values in a 2D NumPy array

I want to cluster non-zero locations in a NumPy 2D array for MSER detection. Then I want to find the number of points in each cluster and remove those clusters which do not have number of points between some x and y (10 and 300). I have tried…
Gautam Sreekumar
  • 536
  • 1
  • 9
  • 20
1
vote
1 answer

Extract detected objects and save to different images - OpenCV Python

I have this image: and I want to extract all the buttons and save them in different images. Until now I have this code: import numpy as np import cv2 img =…
Rita Maia
  • 51
  • 7
1
vote
3 answers

Extract MSER detected areas (Python, OpenCV)

I can't extract the detected regions by MSER in this image: What I want to do is to save the green bounded areas. My actual code is this: import cv2 import numpy as np mser = cv2.MSER_create() img = cv2.imread('C:\\Users\\Link\\img.tif') gray =…
lucians
  • 2,239
  • 5
  • 36
  • 64
1
vote
1 answer

OpenCV MSER not detect my text

Recently, i got a problem about OpenCV MSER detection. The text in below image is not extracted corretly. After morphology closing, the result seems to be right. Code: int main() { // load cv::Mat sourceImage =…
leonmy
  • 11
  • 3
1
vote
0 answers

pixelList in detectMSERFeature in MATLAB

I'm a newbie to MSERFeatures in MATLAB, I've come to know that after using detectMSERFeatures in MATLAB I can plot the detected pixelList on graph, but the pixels are of different colors, I want to know what they represent and how can pixelList be…
1
vote
0 answers

Can't iterate through a collection of individual MSER regions, the images are blank irregardless.

I have a script that collects all of the MSER regions in a photo: import numpy as np import cv2 import sys import matplotlib.pyplot as plt imp1 = sys.argv[1] minA = int(sys.argv[2]) maxA = int(sys.argv[3]) minD = float(sys.argv[4]) try: …
Rich
  • 1,103
  • 1
  • 15
  • 36
1
vote
1 answer

java openimaj OutOfMemoryError when using MSER algorithm for text detection

I want to do text detection in image using java. I am using OpenIMAJ to do that using MSER algorithm (as the first stage), but it takes a lot of processing time and in most images the exception OutOfMemoryError is returned. I tried to change the…
1
vote
0 answers

Opencv MSER detectRegions C++ Vs. Python

I am porting Python program to C++, which uses MSER (OpenCV) detectRegions. I am noticing strange behavior that number of MSER regions detected by C++ program is significantly lower than Python one. I am using same image as a input to both of them…
Tanmay
  • 1,091
  • 1
  • 9
  • 15
1
vote
1 answer

Detecting text in image using MSER

I'm trying to follow this tutorial http://www.mathworks.com/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html to detect text in image using Matlab. As a first step, the tutorial uses detectMSERFeatures to detect…
Anthony
  • 33,838
  • 42
  • 169
  • 278
1
vote
1 answer

Ideas for cell segmentation - OpenCV

I am trying to segment some cells from microscopic image. It looks like this (sorry, can't post pictures yet). I tried Otsu thresholding, for red channel (because cells are red), and it reduced most of the blue background, but some cells are joined…
xtmotoman
  • 9
  • 3
1
vote
1 answer

MSER to binary image in Matlab

How to store the mser regions find out from an image as a binary image variable? I tried to get MSER regions by detectMSERFeatures function and it returns corresponding object. I could plot it, but don't know how to convert it as a binary image. I…
SREE
  • 464
  • 3
  • 20
1
vote
1 answer

How does the function detectMSERFeatures in matlab work?

It is known that the Maximally Stable Extremal Regions (MSERs) can found from an image in MATLAB using detectMSERFeatures, and the outputs of this function are some MSERs. But i have one questions which have confused me for a very long time, that…
user3820714
  • 11
  • 1
  • 2
1
vote
1 answer

MATLAB MSER Feature detection not working

I am using the detectMSERFeatures function in the computer vision toolbox of MATLAB and have been running into a few errors. I have a black and white image that I am reading in to detect the features of, however I want to invert the image before…
1
vote
2 answers

MSER features detection not working in matlab

Why is that whenever I try to use detectSURFFeatures(img) with a binary image in matlab gives me proper points but whenever I use detectMSERFeatures(img) with the same binary image gives me error instead of pointing some valid…
xor
  • 2,668
  • 2
  • 28
  • 42
1
vote
2 answers

How Create Array of MSERRegions class in Matlab

I want to create array of MSERRegions class.Basically i have one array of same type returned by function detectMSERFeatures.See code snippet below regions = detectMSERFeatures(gray_input) %gray_input is any image in gray scall form for (i…
Mayank Jain
  • 2,504
  • 9
  • 33
  • 52