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

Can't visualize my predicted masks for multi-class semantic segmentation

I'm trying to perform a 2D multi-class semantic segmentation on ACDC dataset which contains .nifti images: dataset link The original shape of the masks is (img_heght, img_wdth, img_dpth), so I stored the ground truth slices in np array format in the…
0
votes
0 answers

How to perform k means clustering for images in a tf dataset?

I have a custom function like this to perform k means clustering for images on tf dataset(only on training dataset) def segment_image(images,labels): print(type(images)) print('hello') vectorized = images.reshape((-1,3)) …
0
votes
0 answers

Any ideas to train a segmentation model using slanting images?

I have some problem training segmentation models. I have some UAV images(in tif format), which I cut them into pieces like this: And I made some mask in ENVI like this(still tif format): When I transform it to jpg format, It's like this: Enough…
0
votes
0 answers

Predicted model image is always black for image segmentation model

I have build an image segmentation model(Segnet) for which my iou shows decent value but when I predict the test image, I always get dark image. Below is my model, it will be great if you can point problem in my network. from keras.models import…
0
votes
1 answer

Coco annotations: convert RLE to polygon segmentation

I have coco style annotations (json format) with Both segmentations And bboxes. Most of the segmentations are given as list-of-lists of the pixels (polygon). The problem is that some segmentations are given as a dictionary (with 'counts' and 'size'…
0
votes
0 answers

TFJS selfie_segmentation face swap demo

The demo selfie_segmentation shows some kind of inpainting of the mona lisa over your own face segmentation. I tried to play with this, but i cannot find any hints on how this is achieved. I tried browsing through the source code, but it seems very…
Martijnh
  • 333
  • 2
  • 10
0
votes
0 answers

YOLOv7 segmentation: error with using pre-trained weights

I would like to use YOLOv7 for segmentation on my custom dataset and custom classes. I am already able to run the 'normal' YOLO version with my data and using the yolov7.pt weights. But when I am using the yolov7-mask.pt weights, I end up having an…
0
votes
1 answer

Does this code use soft attention or hard attention?

I'm new to deep learning. May I ask if the code below uses soft attention or hard attention? class AttentionBlock(nn.Module): def __init__(self, f_g, f_l, f_int): super().__init__() self.w_g = nn.Sequential( …
0
votes
1 answer

How to classify ARFF file with no labels using a trained Random Forest model?

I have a training and test ARFF file dataset as such. I had created the below dataset by extracting region-of-interest from a 6 band image and the labels pertaining to each coordinate. @RELATION agricultural.data @attribute band0 numeric @attribute…
Tarun Maganti
  • 3,076
  • 2
  • 35
  • 64
0
votes
0 answers

YOLO semantic segmentation on coco-style custom classes

I have coco-style anonation json and a folder with the relevant images. In my annotations i have not only the bounding-boxes (as expected for YOLO) but also masks (which, as far as I understand, should provide better segmentation because they are…
0
votes
0 answers

image segmentation, find contours

I need to paint over like this: Original: Segmentation: how can it be done better? I tried to use chan_vese and canny, Also gaussianblur and canny. And find_contours in scikit. But this segmentation have problems. Still not everything is circled,…
bobr
  • 1
  • 1
0
votes
0 answers

How to count the number of volumes in 3D images and how to know the dimension of these volumes?

I have 3D segmentation images and using Python, I want to count the volumes in these 3D images. After that, I want to know the dimension of these volumes too. SimpleITK seems to be the correct library to use, but I'm still unable to solve the…
0
votes
0 answers

LIDC-IDRI Lung CT image dataset preprocessing steps and code (Python)

I am new to the lung ct image processing domain. While working with the LIDC-IDRI dataset, I found different methods/steps given on the corresponding website. The content does not share any code snippets or examples for the same. Could anyone share…
0
votes
1 answer

YoloV8 Instance Segmentation Model Deployment to Roboflow Error: InvalidDatasetException Dataset is not of the correct type

I am using YOLOV8 for instance segmentation using Google Colab. Now, after I download, train, validate, and test my dataset from Roboflow, I want to upload my model/weights to a specific project version to use it as my API. I follow their…
0
votes
1 answer

Softmax as activation function in CNN while doing convolution

I was working on segmentation using unet, its a multiclass segmentation problem with 21 classes. Thus Ideally we go with softmax as activation in the last layer, which contains 21 kernels so that output depth will be 21 which will match the number…
1 2 3
99
100