Questions tagged [connected-components]

Connected-component labeling (alternatively connected-component analysis, blob extraction, region labeling, blob discovery, or region extra

Connected-component labeling (alternatively connected-component analysis, blob extraction, region labeling, blob discovery, or region extra

327 questions
0
votes
1 answer

Ignore connected component inside another one

I'm trying to separate the background (green field and light green towel) from the objects using OpenCV so I segmented the following image manually: By bordering the objects in red and coloring blue the connected components which should not be…
Maystro
  • 2,907
  • 8
  • 36
  • 71
0
votes
1 answer

Removing concentric circles from image in matlab

I have OCT imaging data which I am trying to manipulate: I would like to remove all points bounded by the concentric circles at the center of the image. Up to this point, I was manually specifying a radius for the largest circle and setting all…
0
votes
1 answer

connected component analysis in MATLAB

I want to apply connected component analysis on a grey scale image with considering pixels whose grey level is more than a threshold. then, I want to remove those connected components whose length is less than a threshold. please help me? I wrote…
bahar
  • 53
  • 7
0
votes
2 answers

Which data structure would be appropriate to store neighbor pixel distance in c++?

I would like to implement component labeling algo for a color image. The color distances of the four neighbors from the current pixel at (i,j) are computed and the algorithm proceeds as follows: If none of the neighbors have a color distance…
0
votes
2 answers

Regionprops (connected components) matlab

I get the concept of applying regionprops to extract ROI. Basically, regionprops uses connected components technique to extract the object. But, the thing I wanted to ask is using regionprops on "BoundingBox", what is the default value for connected…
0
votes
0 answers

How to build subgraphs of a graph, where the any pair of vertex in the same subgraph has "distance" less than a threshold value?

This is a graph theory problem (connected components in graph theory (Wikipedia)) and I'd like to apply it on the image processing problem. Suppose we have a binary image which contains a set of (e.g., 100) regions (i.e., vertex). The target is to…
0
votes
3 answers

OpenCv see each pixel value in an image

I'm working on Connected Component Labeling (CCL) operation in OpenCv (in C++ language). To see whether CCL works reliably, I must check each pixel value in the image while debugging. I have tried saving the result of CCL as an image, however I…
elmass
  • 117
  • 2
  • 3
  • 9
0
votes
1 answer

Connected components in Networkx disappeared after printing?

I created a graph G and add two nodes. Then I find the connected components of this graph and assign it to variable a. import networkx as nx G = nx.Graph() G.add_node('a') G.add_node('b') a = nx.connected_components(G) Then I print the variable a…
user4432226
0
votes
1 answer

CvConnectedComp.contour is NULL with cvFloodFill

I am trying to use CvConnectedComp which is an output from cvFloodFill. CvConnectedComp comp; cvFloodFill(imgInput,seedPoint, cvScalarAll(0),cvScalarAll(.1),cvScalarAll(1.), &comp,CV_FLOODFILL_MASK_ONLY,imgMask); I am able to use…
sonu thomas
  • 2,161
  • 4
  • 24
  • 38
0
votes
0 answers

Connected component Labeling of specific Size objects

Suppose one image has different objects of different sizes(50pixel,100pixels and 200pixel) in it. How can i Label only those objects which have 100pixels OR Greater than 100pixels & less than 200pixels. I have labeled all objects in image by using…
hassan
  • 43
  • 6
0
votes
1 answer

Split image containing multiple, irregularly shaped images in Python

Given an image that contains several irregularly sized and shaped images (shown here as circles for the sake of simplicity): ...how can I: Detect sub-images Split and save sub-images as separate files? Ideally I'm looking for a python solution. …
Allyl Isocyanate
  • 13,306
  • 17
  • 79
  • 130
0
votes
1 answer

new graph with adding 1 edges and number

In a preparing class for ACM-Contest, our Teacher has given us one printed page of a solved problem. On one page its written that, 2 of the following facts are True but she won't say, why or what: "with adding new 1 edge to a Directed Graph, how…
user4672610
0
votes
1 answer

Error while calculating the edge of an image

I'm trying to extract edge from an image. I used the following algorithm.Input image(e11) which is a 512 * 512 grayscale image is also given. Find the morphological gradient of input image(gradientim) Find the negative image of the gradient…
0
votes
1 answer

connected component analysis error

I'm trying to do connected component analysis.but I'm getting error. I need the vertebral body ;but I'm getting some other objects. Image is: Result is: im= imread('im.bmp'); figure,imshow(im); K1=imadjust(im); figure, imshow(K1),…
0
votes
0 answers

BattleShips game for android. Two pass connected component ship collision

I'm currently tasked with making a battleships game for college. So for, I've managed to get the ships down within the confines of the grid. My only problem now is validating the ship layout with regards to the ships colliding with other ships. I've…