Questions tagged [segmentation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
242 views

Rectangular Image Segmentation?

I'd like to segment an image such that the components are rectangles. Is this possible out of the box? For example: ...
user avatar
  • 30.5k
7 votes
1 answer
140 views

How can I add legends in the ClusteringComponents function?

I am trying to do color separation on this image using ClusteringComponents function (following an example on Wolfram Mathematica webpage). I will like to have a legend identifying each segmented ...
user avatar
  • 595
4 votes
2 answers
134 views

How to get ComponentMeasurements[] from colorized image?

I'm using a software to segment images. Long story short, the output given is an array of integers (range 0-255), which I show here colorized: I'm supposing that the software avoids representing two ...
user avatar
  • 1,313
4 votes
0 answers
103 views

Separating boundaries from WatershedComponents

I am trying to look for local minimum on the boundaries between watershed regions. Typically the boundaries are not connected and spanning across the whole image so it is possible to do it through <...
user avatar
  • 61
5 votes
0 answers
166 views

How to obtain the adjacency matrix of morphological components?

I am wondering if there's a simple way to obtain the adjacency matrix of the morphological components of a segmented image. Consider the following example (originally, from this question): ...
user avatar
  • 1,313
3 votes
2 answers
161 views

How can I find all the rectangles in an image when they overlap?

When I apply MorphologicalComponents to images like the one below (which consist of white rectangles laid on a black background), I get a single object returned, as ...
user avatar
  • 483
3 votes
2 answers
153 views

Video segmentation

Mathematica v12.1 introduced Video and various functions like VideoFrameMap and ...
user avatar
  • 20.4k
1 vote
0 answers
64 views

Image segmentation on the edge (no pun entended)

I want to detect nuclei from unevenly stained images, which works quite well with LocalAdaptiveBinarize. Unfortunately, in many of these images the imaged area does ...
user avatar
  • 1,344
3 votes
1 answer
143 views

Segmenting cells from a stained image of cells from microscope

I have an image which has stained cells and I have to segment all the cells. But the problem is that the cell boundary is not very distinguished where there is staining done because of the stain. ...
user avatar
2 votes
0 answers
72 views

How to segment a 3D data automatically?

I have a data dataCube, which consist of some floating stones and a circular belt. I want to get the 4 biggest stones from the image, and segment out the outer belt ...
user avatar
  • 3,389
8 votes
2 answers
947 views

Prevent background segmentation in watershed transform based on marker

I like to reproduce this accepted answer from stackexchange in MMA. While I would like to achieve a better segmentation than what I already got, at the moment my main problem is that the background is ...
user avatar
  • 3,764
8 votes
2 answers
188 views

Visualize a string/sequence, emphasizing certain substrings

I need to visualize a sequence, with the ability to emphasize certain segments. For example, take this sequence seq: ...
user avatar
  • 1,001
2 votes
0 answers
70 views

Connect the nearest points in segmented image

I am trying computer vision for document analysis of datasheets.And quite new to mathematica My goal is to connect and segment out the part number with part in the drawing considerably something ...
user avatar
3 votes
1 answer
264 views

Reclassify and colorize a grayscale image in several regions according to given pixel value ranges

First of all, my apologies if this is a duplicate question, I did my best at trying to find a previous possible answers. I’m trying to find a more efficient way to reclass and colorize a single ...
user avatar
3 votes
0 answers
85 views

Always missing one component in Image Segmentation with SelectComponents-WatershedComponents-GradientFilter Method

I hope this is not a too specific issue and it is probably something very simple, but it is driving me insane. I am trying some image processing on microscopy images to perform cell isolation as ...
user avatar
  • 161
5 votes
0 answers
193 views

How to efficiently apply PCA followed by SVD to extract the components of PCA?

I am working on segmenting a textured image using Gabor Filters. This is based on this paper. There exist a Matlab implementation of this as well. Earlier I managed to do up to this. With the help of ...
user avatar
  • 3,113
1 vote
0 answers
163 views

How to segment a textured image using Gabor Filters?

I am following a matlab implementation of texture segmentation using Gabor filters. My test image (img) is from Brodatz and as ...
user avatar
  • 3,113
4 votes
1 answer
211 views

Distinguishing different cars in picture

I recently posted a question. And I got a great answer from Mr. Carl Lange Image Segmentation His solution worked like a charm. However, I got another request which is more generic in nature. The ...
user avatar
4 votes
1 answer
358 views

Image Segmentation

I have what should be a pretty simple question for Mathematica gurus. I have a set of images containing cars and a background. I am trying to create a black and white image where the white part is the ...
user avatar
3 votes
0 answers
119 views

How to perform unsupervised texture classification?

Consider a texture mixture (img) from Brodatz. I want to classify the five different texture patterns and segment the corresponding regions. Following this, I ...
user avatar
  • 3,113
0 votes
1 answer
158 views

How to segment an image based on MeanEuclideanDistance?

Consider an image (img) as Now I have partitioned the image using the following command parts = ImagePartition[img, 32]; ...
user avatar
  • 3,113
4 votes
1 answer
195 views

Highlighting an image with texture segmentation

I'm trying to take an image of a pencil sketch (http://www.vangoghgallery.com/catalog/image/1442/Sower-with-Setting-Sun.jpg) and colorize the different segments based on the texture. So in this image, ...
user avatar
  • 41
10 votes
1 answer
542 views

Why this simple case of watershed segmentation fails?

(Cross-posted on Wolfram Community) I tried a simple experiment today with WatershedComponents. I took this image from: https://fr.mathworks.com/help/images/ref/...
user avatar
  • 8,538
17 votes
3 answers
1k views

Image segmentation by pixel value

I'm looking for a way to segment a grayscale image (or a 2D array) by its pixel values. We look at two neighboring pixels, if their values are close within a certain threshold, then we say they are ...
user avatar
10 votes
2 answers
345 views

Is it possible to extract edges shared between two labeled objects?

For the past couple of weeks I have been trying to implement a cell-tracking and lineage mapping algorithm using which biological cells can be tracked in a time-lapse image. The code can be found at ...
user avatar
  • 8,538
2 votes
1 answer
146 views

How could a non-convex volume joining the outer points of a 3D anatomical model be created? [duplicate]

I am trying to visualise segmented anatomical models in 3D. Currently, my attemps are very basic, like the following code. What other ways could you come up with? ...
user avatar
  • 2,994
5 votes
2 answers
189 views

SoftmaxLayer Incompatible types

Trying to create U-Net similar to this paper from this GitHub project but keep getting "incompatible type" error on the final softmax layer. Any ideas for how to organize data to satisfy Softmax layer?...
user avatar
6 votes
2 answers
369 views

How to get a deformable mesh from this binarized image?

This question is linked to previous question but significantly different: how to get cell boundaries in the image I am using Mathematica 10.2. I have a binarized image (see below) and wish to get a ...
user avatar
  • 8,538
16 votes
4 answers
1k views

How to get cell boundaries in the image?

I have a microscope image of some animal tissue and wish to get the contours for all the cells that are present in the image. the cells are connected to the neighbouring cells via these contours. At ...
user avatar
  • 8,538
2 votes
1 answer
356 views

Segmentation of different components from a relatively low contrast image

I have a digital image from X-ray tomography as below: There are three different ingredients/components to be segmented: the continuous phase, mastics; the discrete phase I, aggregates; the ...
user avatar
0 votes
0 answers
54 views

Why is the SelectComponents behaving differently?

based on the code provided by Dr. belisarius at here, I wanted to test it on a single slice of a 3d image. If I write the code in the following way I get the desired output. ...
user avatar
  • 3,113
2 votes
1 answer
87 views

MorphologicalPerimeter[] unstable behaviour with increasing threshold values

I have a PET image represented as a list of lists of grey value intensities. Here you can find the file in a "MAT" format (you can import it like: ...
user avatar
  • 2,994
2 votes
1 answer
2k views

Is there Sauvola's or Niblack's threshold binarization algorithms?

It seems that there are no Sauvola's or Niblack's built-in algorithms for image binarization. Maybe someone has ready to use math-code that implement one of these algorithms. I need one of these ...
user avatar
  • 900
2 votes
1 answer
204 views

How to complete boundary in masked image?

I am trying to generate a mask of the elliptical boundaries in this object. Any ideas on how I could complete the edge of a partially filled elliptical object? Thus far, I've obtained a mask that is ...
user avatar
  • 749
3 votes
1 answer
307 views

Problem with ComponentMeasurements and property "Centroid" [closed]

I am showing here three test images to investigate the output of ComponentMeasurements when using the property "Centroid". <...
user avatar
  • 11.3k
2 votes
2 answers
239 views

Isolate black square in image

I have the image below and would like to isolate only the black square (on top of it are some brighter rings visible originating from an illumination lamp). How can that be done?
user avatar
  • 11.3k
4 votes
2 answers
343 views

Using mask to segment growing cells over multiple timepoints

I am trying to segment some very irregular cells out of images generated by timelapse microscopy. These cells don't fit any simple shape (not circular or elliptical) and they grow and change shape ...
user avatar
  • 887
7 votes
2 answers
871 views

Finding objects in images with inhomogeneous background

I have the following image where bright circular shaped objects are seen. The image has usually an inhomogeneous background and ...
user avatar
  • 11.3k
2 votes
0 answers
332 views

How can I analyse and manipulate k-space data of a DICOM imageset? [closed]

I'm very new to Mathematica. I've some MRI images as 3D DICOM data. I want to get the corresponding k-space data to identify all the signals with their corresponding amplitude, frequency and phase. ...
user avatar
1 vote
1 answer
233 views

Data fitted by two linear fits [duplicate]

can anybody help me please and tell me how to fit my set of points by two linear fits? It is always exactly two of them and are always linear and should cover all the data. The second line should ...
user avatar
  • 13
16 votes
2 answers
2k views

Trainable WEKA segmentation of images

Is there a Mathematica equivalent of Trainable WEKA Segmentation as implemented in Fiji, the image processing software? A Google search did not return any relevant links. I attach the original image ...
user avatar
  • 449
21 votes
2 answers
1k views

Get measurements of touching particles in an image

I have a picture of glass spheres. I want to calculate different properties of these spheres such as circularity, size, and count. I have managed to fill the white centers of the particles to ...
user avatar
  • 888
9 votes
2 answers
2k views

Efficient way to perform local Otsu thresholding on image

I have images of cell nuclei that have locally varying intensity distributions. Therefore, I need a robust local threshold algorithm. LocalAdaptiveBinarize works ...
user avatar
  • 3,258
2 votes
1 answer
135 views

RegionBinarize distance parameter has no effect

I'm trying to segment an object from background in noisy micro CT data. The original 3D volume data looks like this: ...
user avatar
  • 413
2 votes
0 answers
166 views

Draw segment in arrayplot and get intensity value and coordinates in segment

I want to segment an arrayplot donut in to 6 pizza slices and export per segment the coordinates and intensity values of the pixels inside of it. I found a good example, which used RegionMember to ...
user avatar
  • 21
13 votes
4 answers
1k views

Segmentation of a microscopy image with uneven illumination

I am trying to do a little image segmentation on some cells taken from microscopy images that have uneven illumination. I am having trouble getting the background of the image cleaned up after ...
user avatar
  • 887
20 votes
1 answer
573 views

Segmentation of sunspots

I recently went for a walk with my camera and snapped a few pictures of the sun. The pictures didn't turn out too well, but this was to be expected without a telescope. I thought it might be a nice ...
user avatar
  • 5,550
21 votes
2 answers
821 views

Object separation from a 2.5D surface

I'm trying to identify the shape and the boundaries of objects. The data was generated with a laser scanner and represent the surface of an area in which many boulders lay on the ground and making up ...
user avatar
  • 441
55 votes
2 answers
5k views

Image segmentation and object separation in 3D using Mathematica

I currently work on an image segmentation scenario to detect cell nuclei in 3D using Mathematica. The data I have are image stacks in the TIFF file format. I would like to keep the sequence of image ...
user avatar
  • 3,258