# Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

1,513 questions
Filter by
Sorted by
Tagged with
1answer
115 views

### Image processing: get rid of components that touch the image boundary

I strongly suspect that there should be a built-in solution to the following problem: I have a binary image like this: ...
1answer
150 views

### Code or algorithm for the built-in function SavitzkyGolayMatrix

Does anyone know the algorithm that the function SavitzkyGolayMatrix implements? Unusually, the help page does not spell out an explicit formula or the algorithm ...
1answer
115 views

### Is there an option to make Image3DProjection respect the underlying data type of the image array?

Even though Image3D supports a variety of data types (Bit, Byte, ...
2answers
138 views

### Highlight pixels in difference image of two images where pixels are not equal

I have two images which are similar. I would like to highlight the pixels in the difference image (e.g. in red) if the values are not exactly 0. How can I do that? I know I can get the image data ...
0answers
73 views

### How to get an image skeleton sharp with long lines

How can I get a straight skeleton of an image. 1@ just use vertical, horizontal lines in situation of image1. 2@ include tilted lines in situation of image2. Background, using least lines to ...
2answers
134 views

### Scaling and Stretching a Mesh

I have a Voronoi mesh, given by ...
1answer
394 views

### Make a 3d plot of 2d "slices"

I have two 2D plots which came from taking slices of a 3D data set of the form (x,y,z,intensity). I manually "sliced" the data set to get the slices I wanted from two planes of interest and plotted ...
2answers
74 views

### How to change color of DistanceTransform image?

I want to overlay a set of points onto a distance transform of them. But, I don't really like the black default color of the distance transform. Is there a way to change this? Given the points ...
1answer
613 views

### Making a graph or network interactively over an image

Given an image, is it possible to manually draw a graph over it? For example, taking the following image: I want to manually pick the vertices and draw the edges in a "Paint-like" manner to get, for ...
1answer
443 views

### Getting cell edges from a picture

I would like to write a program that, given a picture of an epithelium (2D cell array), for example automatically detects the cell edges and returns the corresponding lattice. Illustratively, ...
1answer
118 views

### Complete contours (outline) from a image

I want to find the contours of (parts) image and sent the output to a laser cutter. For example, take this image: I use this code: ...
1answer
234 views

### How to detect rectangles with certain colors in an image?

I'd like to find the red bordered rectangles in this image: Here are my example images: ...
0answers
53 views

### How to find length of wall sizes

I have room size calculated from mathematica. Now i have to classify between walls from the image My second output should be from the source image, i have to classify similar walls based on thickness ...
0answers
192 views

### Decompose website into rectangular grid?

I'd like to take an image of a website and decompose it into a rectangular clustering of dominant pixels like this: What I've tried so far There are a few existing webpage segmentation solutions: ...
0answers
51 views

### Equalize a set of images' histograms to their mean

I have a set of 1000+ grayscale SEM micrographs I am trying to binarize, but the differential brightness/contrast makes it difficult to binarize using all of the binarization and segmentation methods ...
1answer
231 views

### How to divide the image into several irregular parts according to this grid

I see the method of image segmentation here. I can use the ImagePartition function to divide the image into several regular sub images ...
1answer
121 views

### How else can I draw this apple?

The following code is written by Luji. ...
0answers
70 views

### Mathematica for automatic image processing and quantification [closed]

I've been working on image analysis pipeline that involves a set of batch processing macros in ImageJ (for image segmentation) and data processing in Excel (VBA). I've got the process run in 4-5 ...
3answers
415 views

### Separate the luminance from the chrominance in an image

My goal is to separate a full-color image into its luminance and chrominance ("color") components and display them as two images: 1) a black and white image (for the luminance) and 2) a color image (...
1answer
111 views

### Describe overlapping parts of an image with the fewest points

Lets say I have an image composed of 19x19 pixel red squares, each of which represents a single point (i.e. a plotmarker). I wish to obtain an estimate for the actual point each square represents, ...
3answers
498 views

### Importing a grid of numbers from an image (sudoku like)

Can anyone see a way to import a grid of numbers from http://www.mit.edu/~puzzle/2019/puzzle/lantern_festival.html into Mathematica? TextRecognize doesn't seem ...
0answers
98 views

### Trouble reading FITS with Mathematica 12

I've been using Mathematica to process FITS for years, but it has changed in version 12. Import now yields an Association rather ...
0answers
226 views

### Image-based reinforcement learning with neural networks

After seeing that "OpenAIGym" is not exactly supported on Windows and playing around with https://www.wolfram.com/language/12/neural-network-framework/train-an-...
0answers
78 views

### Finding bubbles in an image

I have several images which show bubbles in water. The task is to identify these bubbles, to count and measure them. I know this is not easy. 100% accuracy is not needed. The best I have so far is ...
1answer
106 views

### Track the location of of dot from noisy image

https://imgur.com/a/SnTYESG (subtraction between the image) https://imgur.com/a/ZdOS5wf (orignal image) From the original image, since my CCD camera is bad, I cannot really see anything. However, ...
1answer
52 views

### List of all points on the edges of the image

What is a easy and fast way to get a list of all points on the edges of the following image ? img = Import["https://imgur.com/1sAtNOk.png"] I tried to using the ...
1answer
264 views

### Good book on image processing and analysis on Mathematica 12

Can someone recommend a good book on image processing/analysis and graphics on Mathematica 12?
0answers
65 views

### Setting the location of the origin within an image for AffineTransformation

This question is closely related to this one, but slightly different. I want to perform several AffineTransforms on an image (myImage). For example, here is a ...
2answers
121 views

### UpdateInterval doesn't work with Dynamic[CurrentImage]

I work on image processing using images from webcams. It's connected via USB and I get "live" images by: Dynamic[Refresh[CurrentImage[], UpdateInterval->5]] ...
1answer
53 views

### What's wrong with my masking in this ImageMeasurements?

I want to find the mean color of an image's region defined by a polygon, and I tried this: ...
2answers
212 views

### Find gridlines in image of blots arranged in a grid

I have an image with a grid of equal separations. I would like to detect the lines in this image. I tried with ImageLines in but it does not work. @MelaGo Thank ...
2answers
256 views

### Extract partitions of images after edge detection

Given a edge detected image like this: I would like to extract each character into a sub-image, i.e so that each new picture only have one character. Is there a simple way of doing this in ...
1answer
101 views

### Hammer projection to rectangular

This might be more of a mathematical problem than a Mathematica'l one, but still, maybe you'd help me. I want to write a function that would produce a rectangular image from an image with Hammer ...
1answer
375 views

### How to make a video from png images

I have a set of about 100 .png images representing the evolution of the system I am studying: how do I create a video out of these images with Mathematica?
1answer
117 views

### Detect sub figures and split (automatically?)

I would like to take a large figure showing a sequence of individual plots and automatically split the into series of images showing the individual sub-plots (to be exported as animated GIF later). ...
1answer
217 views

### How to track a deformable rod in video?

I have a video of nanotubes in solution taken with a confocal laser microscope. I typically track these nanotubes with Fiesta or Fiji, but in this case, there is variation in brightness that is ...
1answer
126 views

### Convert a point in the Radon Space to a line

I need a function point2line to convert a point in the Radon Transform Space to a straight line. But I don't know the algorithm inside mathematica, I don't know ...
1answer
110 views

### How to extract specified objects from a pdf?

Is it possible to extract some information from a pdf file? I am interested in extracting the words before the squared brackets and the following word (in the image, for example, I would like to ...
1answer
77 views

### Image matching and transformation

I hope this picture can help me to be clearer. The triangles represent some values of an image (EDITED: positions). The same for the circles, but from a different image. Some values matches, some ...
1answer
66 views

### Find the higher degree of similarity between images and report the points in common and the differences

I am trying to analyse due different images and find their similarities. In order to do this, I need to consider the coordinates of the pixels in both images, then select the points in common, i.e. ...
2answers
94 views

### Compare two plots by finding the minimum distance among points

I have a question about comparing the points within two plots. I would like to compare two plots and find the minimum distance among their points, in order to find the nearest/common points (i.e., ...
0answers
71 views

### Is it possible to select a number of points to highlight points in an image?

I would like to ask you how I can fix a number of points to show in a picture. In the previous post (Is it possible to get the coordinates only for the highlighted points from an image?), JimB ...
1answer
79 views

### Is it possible to keep only coloured parts in an image, removing all the rest (in greyscale)?

I would like to know if it is possible to keep only coloured parts (for example red eyes) from a b/w image, removing all the other parts not coloured (i.e. in grayscale or black and white). I was ...
1answer
147 views

### Is it possible to get the coordinates only for the highlighted points from an image?

I would like to ask you if it is possible to get the coordinates or a couple of numbers that can give me the positions of the highlights points (selected using HighlightImage function) in an image. I ...
4answers
675 views

### MaxDetect speed

What's the fastest way to find the local maxima of a 2D list? E.g. ...
0answers
51 views

### Can LearnDistribution Train and Generate Images Without Defaulting To 256x256?

In spite of anything I try it seems the ConformImages[] function nested in the LearnDistribution[] function resizes images to 256x256. If I convert an image into its "Data" representation before ...
1answer
384 views

### Tracking cells as they move under a microscope

I have a video (tiff file) of cells under a microscope and I'd like to segment and track the location and sizes of them across time: It has a hundred frames: I've uploaded it here (now it is public):...
0answers
96 views

### Recognising people from photos

I have a large number (probably 10000) of personal photos taken over the last few years, a good proportion of which contain family members. I'd like to put together a photo book of one family member,...
1answer
115 views

### Is there a SubImageApply?

Given an image and a subimage (as a rectangle or pixel ranges): img = ExampleData[{"TestImage", "Lena"}]; f = FindFaces[img]; HighlightImage[img, f] How would ...
3answers
300 views

### Including the actual length scale of the image in processing microscopic images

Following the wonderful methodologies provided in this post, I have learned how to process microscopic images of the types shown below in order to analyze them. When it comes to analysing the size ...