Questions tagged [image-segmentation]

Segmentation is a basic operation in image processing: its purpose is to group similar pixels into coherent regions = segments.

In image processing, image segmentation is the process of partitioning an image into multiple segments (sets of pixels). The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze. More precisely, image segmentation is the process of assigning a label to every pixel in an image such that pixels with the same label share certain visual characteristics.

The result of image segmentation is a set of segments that collectively cover the entire image. Each of the pixels in a region are similar with respect to some characteristic or computed property, such as color, intensity, or texture. Adjacent regions are significantly different with respect to the same characteristic(s).

Image segmentation is somewhat related to perceptual grouping: the spatial organization of visual stimuli. Some image segmentation algorithms attempt to employ Gestalt Laws of perceptual grouping to produce visually meaningful image segments.

Some popular image segmentation algorithms are Normalized cuts (by Shi and malik) and Mean-shift (by Comaniciu and Meer).

2542 questions
0
votes
0 answers

Reimplementing iOS Photos app background removal / image segmentation in Swift?

I have searched all over for examples of how to mimic the newer iOS Photos app capability to lift an object from it's background in my own SwiftUI project, but haven't found anything better than this…
0
votes
1 answer

Two neural networks - combine sigmoid outputs

I have two different neural network architectures. Both of them are for image segmentation. I run single input through both of them and got two sigmoid outputs (x and y). I want to combine them to get the best possible result, but I am unsure…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114
0
votes
0 answers

How do I get the location of the nuclear membrane (aka inner circle)?

I have pictures of many cells with a cell membrane (outer oval) and nuclear membrane (inner circle) marked in red (see image 1). My goal is to count the number of green dots that are centered on the nuclear membrane or inner circle (see image 2). I…
0
votes
0 answers

PyTorch error when batch size is 1: ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1]

Below is my deeplab model: """ DeepLabv3 Model download and change the head for your prediction""" from torchvision.models.segmentation.deeplabv3 import DeepLabHead from torchvision import models def createDeepLabv3(outputchannels=1): …
0
votes
0 answers

Unable to convert UnsafeMutablePointer to image in swift

I am trying to use HMS Image Segmentation Library for human body segmentatinon. After processing input image, getMasks() function returns UnsafeMutablePointer data. I want to generate mask image from the given data, but unfortunately failed.…
0
votes
0 answers

Topology loss between contour image and rgb image python

I have a distance map image as an input and model output in rgb image. I want to calculate topology of nuclei in predicted image based on contours from input image. Any leads will be helpful. Thank you
0
votes
2 answers

How to convert YOLO annotations (.txt) to labelme?

I'm using Yolov8 to perform image segmentation, and I want to retrain the network with images predicted by the network itself, but making corrections to the masks. That is, to make these corrections, I would like to know if there is any program that…
0
votes
1 answer

How to increase dimension of tensors in tensorflow?

I need to increase the dimension of a tensor from 3D to 4D because the tf.image.extract_patches takes input images which is a 4-D Tensor with shape [batch, in_rows, in_cols, depth], where I think depth is for rgb images but what I'm using is…
0
votes
0 answers

What is the input and output shape of GRU while applying CNN before that?

Can you please help me. If input to a GRU is an output from a CNN by shape e.g., (batch_size,out_channel,width_of_image,hight_of_image), what would be the input and output shape of GRU?
sepid
  • 1
0
votes
0 answers

Yolov7 segmentation error while training, if the dataset is big

I am having an error while trainining for segmention like this: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 3 dimension(s) it does some epochs like 30, sometimes…
0
votes
0 answers

add a new class on pre trained mask rcnn

I want fine tuned mrcnn on my custom dataset, and after tuning, it could only detect the class I add, and my tuning based on MS coco weight, here is my code: class ShoeConfig(Config): NAME = "shoe" # We use a GPU with 12GB memory, which can…
Eave_Z
  • 5
  • 4
0
votes
0 answers

k-fold Cross-validation in segmention by cnn

I wrote a code for the segmentation of iris images and got relatively good results. But I need to do it better. I want to use k-fold cross validation. I wrote a code for the segmentation of iris images and got relatively good results. But I need to…
0
votes
1 answer

Detection of ground plane using PCL library where I have other planes in the point cloud as well

I want to detect the ground plane in a point cloud which also has other planes. The other planes are from a box and have larger area which is why RANSAC is not removing the ground plane. What I have done is use passthrough filter so I can remove the…
0
votes
1 answer

skimage segmetation extracting labels filtered by properties

I would like to extract skimage identified "labels" or segments which meet thresholds of parameters. My binary image was successfully split into segments, which skimage seems to call "labels", as the following: labels = measure.label(classified,…
0
votes
0 answers

Open CV blob detection cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS export georeferenced image with rasterio

I am using cv2.SimpleBLobDetector to detect shapes within my image. I then use cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS to delineate the blobs which meet the parameters which I set out. #draw the keypoint circle around the…
Max Duso
  • 305
  • 1
  • 4
  • 15