Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
13
votes
1answer
615 views

How to align a poster?

I'd like to crop and transform out the magazine cover so that it is rectangular. I read the docs for ImagePerspectiveTransformation, and here's where I got to. ...
11
votes
3answers
2k views

Make the moon's 3D gif

How do I make the following gif I tried: ...
8
votes
1answer
459 views

How to keep the non-overlapping parts when aligning images?

I would like to stitch together a pair of images. For example: ...
23
votes
1answer
2k views

Using ImageCapture to access a USB webcam in linux

Is it possible to access a USB webcam through Mathmatica on Linux? When I run ImageCapture[] I get the following output ...
18
votes
4answers
1k views

How to fill in an irregular border of an image

I have the following code which draws a graphic, and colors the regions in it in different colors: ...
12
votes
1answer
528 views

How can I extract the outline of bubbles in my image?

I have an image: I tried to extract the outline of the bubbles, but I met with some problems. Firstly I tried the method used in Mathematica documentation for ...
4
votes
1answer
451 views

How can I create a colour image using raw black and white data? (FITS data cube)

I have a data cube containing pictures of a galaxy across a thousand wavelengths. I want to take the data for the image slides in the red and blue parts of the spectrum, and have them represented in ...
3
votes
2answers
799 views

How to copy Coordinates of “Get Coordinates” in Figure?

I am trying to reproduce the answer here about Recovering data points from an image. I click the figure and press "Get Coordinates". I would like to copy the four coordinates by CTRL-C and then paste ...
20
votes
2answers
478 views

Reconstruction of interrupted paths in images

I want to reconstruct paths in images and have already implemented a working method in Mathematica. On the left side you can see an image with interrupted paths and on the right side the reconstructed ...
16
votes
3answers
809 views

How to place path lines on an image

I have a "sugarcane crop" image taken from above (with a Drone) which was pre-processed with the MorphologicalPerimeter and EdgeDetection functions of Mathematica, resulting in binary image with a ...
16
votes
3answers
841 views

Measure a DensityHistogram[] pair similarity

I study human vision and more specifically eye-movements. "If we display 2 symmetrical patterns (20 min one after the other), will our gaze distribution be symmetric is my research question." The 2 ...
14
votes
1answer
2k views

How to find a specific color in one picture?

In a picture, there are many different colors. How can I just want to find the position of one color. In the following picture, if I would like to find the coordinates of the position of blue, how can ...
13
votes
3answers
1k views

Rotate a grid, made up of lines, so that it aligns with the xy axes

While working on an answer for another problem I hit upon one of my own. I took the image given in that question and cleaned it up so that I could detect the grid lines: ...
13
votes
1answer
5k views

How to generate a cartoon of a face

I want to use Mathematica to generate a cartoon of a face. For example, some thing like this: I think it can be done using Mathematica, but I really don't know how to do it. How can it be done, and ...
13
votes
2answers
575 views

Analyze touching particles with holes in a microscopic image

I am looking for an easy method to count individual particles in a microscopic image. It is quite difficult for Mathematica to detect them, because they are touching each other. I am quite a beginner ...
13
votes
1answer
1k views

How to make a Nebulabrot?

A Nebulabrot is a generalization of the Buddhabrot, a fractal rendering technique related to the Mandelbrot set that sort of looks like a meditating buddha. The Buddhabrot rendering technique was ...
12
votes
4answers
603 views

How to extract a specific element from EXIF photographic metadata?

It's now possible to import photographs into Mathematica and import the EXIF data at the same time: i = Import["ExampleData/coneflower.jpg", "ImageWithExif"] You ...
12
votes
4answers
3k views

How to make a Cahn–Hilliard model GIF

The question derived from @Jason B 's answer.I wanna make it but don't how to do.But we can get some rule about the GIF The change of the total pixel is very small. ...
11
votes
4answers
715 views

Morphological Components with periodic boundary conditions

I would like to find the connected(with periodic boundary conditions) components in a large binary matrix. What I've tried, and it does a fair job is: ...
11
votes
2answers
354 views

How to place curve path lines on an image

This is a further question of this post.I just make the path be curve by Photoshop. I note Mr. C.E.'s method seem to not work anymore.Any method can repair it? Since I posted the original question, ...
9
votes
2answers
1k views

Selecting morphological components by clicking on them?

This is a bit of a follow-up to a previous question: How can I merge multiple sets of morphological components (perhaps selected using different metrics)? I've run into a few problems recently where ...
9
votes
2answers
1k 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 ...
20
votes
1answer
291 views

How to count proportion of two phase in a electron microscope picture

I have a picture: The sunk area is a phase,and the bulged area in another phase.I want count the proportion of this two area.this is my method.First I get the mask ...
19
votes
0answers
641 views

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
15
votes
2answers
1k views

How to efficiently mask an image?

I want to extract/cut out a part of an image. Since my mask is not rectangular I want to set pixels that are not masked to zero (black). My current approach is something like this: ...
13
votes
2answers
479 views

Extracting data from analog screen photograph

I'm using an analog profilometer from the 1970s and need a way to digitize the data and the only way is through a photograph. I've searched but all I could find was how to extract data from computer ...
12
votes
3answers
452 views

Is there any faster implementation of DominantColors?

The function DominantColors is a simple function but runs incredibly slow when the number n of dominant colors to find is large - it is currently the biggest bottleneck in my code: ...
11
votes
1answer
333 views

How can I use Mathematica to make a captcha image?

This was inspired by this post which is about the serious business of website deployment in the Wolfram Cloud, and interaction with Google's reCaptcha system. I started thinking of how to make those ...
6
votes
3answers
198 views

How do I ColorQuantize to a predetermined mosiac builder's pallet of limited choices?

If one is already working with a specific pallet of colors (say 9 colors of jelly bean in a mosaic) is there a good way to convert any image into those predetermined color choices? The ...
6
votes
1answer
1k views

Efficiently exporting many images as a video

I have many .gif images and I would like to export them as a single video file (I prefer .mov, but any video format is fine). But what if I have several tens of megabytes of .gif images? Is it ...
5
votes
1answer
561 views

How to return position of one image inside of another [duplicate]

With ImageAlign result is another image, that is composition of another two. But I'm looking for function that will find position, x-y coordinates of smaller image ...
3
votes
1answer
657 views

extract data from a graph image

How do I convert the following image graph into data (if possible into function)? I checked this answer and found that my problem is grid and plot have same color.
17
votes
2answers
489 views

Counting number of tubes in an image

The task is to recognize the tubes on the ceiling in the following image Get the binary image ...
15
votes
4answers
530 views

How to separate paths from the output of EdgeDetect?

I have been trying to find a way to separate the various closed paths that can be output by EdgeDetect. For example, taking the output of: ...
13
votes
1answer
609 views

Can I split an image into subparts automatically?

I want to extract subimages from an image like below. There are 6 components in the image, I want to crop this image into 6 images in a way each individual image contain only 1 component. Can I ...
12
votes
1answer
288 views

Using ImageJ filters directly from Mathematica through J/Link

tl;dr I am looking for a short but complete example that shows how to apply an ImageJ filter to a Mathematica Image through J/Link. Fiji/ImageJ is one of the ...
11
votes
1answer
2k views

Construct 3D image from multiple 2D images

My goal: How to (1) construct 3D image for visualization. (2) how to write 3D array or image into binary raw file. Is there a way to accomplish this in Mathematica? Alternative_Answer for: (...
10
votes
2answers
1k views

How to use Mathematica to turn a picture into low poly style?

I want to use Mathematica to turn a picture into low poly style. That is, to make the following conversion: Bill to Bill low poly(Using Image Triangulator App). I think the biggest difficulty is how ...
10
votes
3answers
496 views

How to convert the binarize-picture to a Region

The Region of Mathematica is nice,and is the new conception of version 10.0.I can convenient get ...
8
votes
1answer
949 views

How to render a 3D tubular graphics from a 2D image path

Question: Is it possible to create a tubular 3D image like Extruding along a path using "Tube" function in mathematica for following images? Image (1) Image (2) Thanks I have been playing ...
8
votes
2answers
319 views

How to apply GradientFilter locally to an image?

I have an MR image of a knee. I want to apply a gradient filter locally so that if I click on a pixel, for example, say on any part of the femur, I'll be able to choose a circular or rectangular ...
7
votes
1answer
314 views

Optimal Binarize value for counting experiment

I am currently working on a physics experiment where I count particles. I have looked at and used a bit of code from the following sources: Cell counting from an image file and Count Elements in Image ...
7
votes
1answer
247 views

How to make marker images?

In the docs for GrowCutComponents[] there are many examples of masks, but I don't know how to make one for myself. I suppose they are using the drawing tools in ...
7
votes
2answers
420 views

Analysis of many similar x-ray Images

From a 3d x-ray scan, I have many similar slices to analyze. Is there a way to determine the position of the three rectangles and the inner circle?
7
votes
1answer
813 views

How to perform noisy circle detection

I want to detect circles that are embedded in noise. For this I created a few circles with some defined signal-to-noise ratio: ...
7
votes
0answers
386 views

Visualization of traces of moving objects

An example movie which is made with the listed mathematica code below shows traces of moving objects: https://youtu.be/8jN2uuSHCEg (Melting ...) http://youtu.be/5ET62846C-I (Crystallisation ...) ...
6
votes
1answer
497 views

Calculate dual graph of planar Graphics map

This diagram from a Wikipedia article illustrates what I hope to accomplish in Mathematica: I have a planar map in Graphics format. Here are two very simple ...
6
votes
1answer
175 views

Strategy to build efficiently an image using parts of many images

I have about 1000 images of 1000px $\times$ 1000px and a list which contains the coordinates of the pixels to select, for each of the 1000 images. Each pixel is used once, so the final image is a full ...
5
votes
1answer
1k views

Circular crop: extract non rectangular parts of an image

I want to extract a part of an image. For example, let's start with something like the following image: I would like to apply some image processing to get this result: I have tried to manipulate <...
4
votes
3answers
647 views

How to find Image Size of a control object?

I want to find the ImageSize or at least dimensions of any control object irrespective of it being an image or an any other control such as ...