# Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

1,218 questions
332 views

### Converting image into graphics

I have a black-white image, but it is rather blurry so I was thinking of converting it into vector graphics so I could do some coloring. This is the image: ...
49 views

### Counting pixels in a binarized 3d image

I have a stack of DICOM images which have been used to create a 3D image. This image has been put through specific filters in order to isolate only the areas of interest and binarize the 3D image. I ...
63 views

### How to compute distance between movable items in the screen?

I want to design a box in which I can move a set of items. Specifically, there should be N items (e.g. little balls with numbers inside). Items can be arranged with the mouse inside a box, and, in ...
54 views

### Random points from an image using a BernoulliDistribution

I am a Mathematica newbie. I need to sample random points from an image which I have stored in a variable img as: ...
52 views

### Can Mathematica convert PDF into QR code too?

I recently learned that we can embed a whole PDF file into QR codes. But many online sites are not free for this service. Just wondering if Mathematica can do this? Note I don't want to convert the ...
84 views

### Kernel shut down when use FindFaces with LBP Cascades

I found Mathematica can use OpenCV to improve face recognition in FindFaces: how to improve the results of the face recognition feature. But I tried this way and the kernel crashed. ...
282 views

### How to define a PixelShuffle Layer?

PixelShuffleLayer come from Real-Time_Single_Image. Firstly, a $C\times H\times W$ image, after a convolution, now $f^2\cdot C \times H\times W$, then sub-pix, finally get a $C \times fH\times fW$ ...
91 views

### How do I overlay two images from Densityplot and ListDensityPlot?

I am trying to overlay two images as in the following (from here): I have a data in MS excel format here! (1) I want to select three columns for listdensityplot. This will serve as my background ...
190 views

### Take part of the image by coordinates

I have four coordinates in the image, and I am interested in taking this polygon from the image. I try to do it in the following manner: Edit: I use the solution from the @kglr answer, unfortunately,...
55 views

### Need Help for Layout

I am preparing pdf's with an image, a description and a QR code linking to that image hosted on the web. However for now the QR code is always positioned just bellow the description. I would like to ...
58 views

### Adding an Image at a specific place on an existing image

I have created the following PDF: Basically an image, with a description underneath and a space to take some personal notes: ...
78 views

### Why aren't those images similar according to Mathematica?

I have two images: They are extremely similar, however when I apply: ImageDistance[im1, im2] I get: 10.1867 For me it should be much lower
81 views

### Why is the color changed after applying ImageData?

I have an image square.png as below:- I imported the image as ImageSquare, and then applied ...
219 views

### How does this Mathematica code work?

I am trying to work with a simulation of Brain Tumor growth and I was fortunate to get a very great example at http://community.wolfram.com/. However, I need clarifications on some of the code. I ...
67 views

### Doing what ImageAdjust does for a group of images

img = Import["flower.png"]; ImageAdjust[img, 0, {.00000002, .00000009}]; I know how ImageAdjust works and it is perfect for ...
40 views

### Identifying overlapping incomplete squares in image

I am trying to align my device and markers automatically using positioners driven by Mathematica. The camera feed looks like this: The device is the black square with gold electrodes. The markers are ...
49 views

### How do I use a Gaussian as a window function for a high-pass filter?

I'd like to apply a high-pass filter to some 2D data. Given the diagram on the documentation page for HighpassFilter, I assume the default window function is a ...
298 views

### Is there something wrong with MedianFilter?

Note: Wolfram Support confirmed that the behaviour of MedianFilter is as intended, but the description in the documentation in incorrect. M11.1 and earlier have the ...
182 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 ...
39 views

### Using TotalVariationFilter on dataset with missing data

TotalVariationFilter does not work on a dataset with missing data. Does anybody has a good idea to make it work? I don't know if first splitting the dataset into ...
157 views
+200

### How to segment rectangular photographs on a table?

Given an image of a table with photographs (take from any angle), I'm trying to extract the photographs and correctly align them into perfect rectangles. There are four steps to the algorithm: Detect ...
74 views

### How to achieve this fractal image transformation?

The app MirrorLab on Android has a very interesting Julia Effect, and I'd like to recreate this effect in Mathematica. Here are some examples of input images and their outputs: ...
71 views

### Visualizing Color Values On Original Image

I have an image and I would like to retrieve all color values of pixels which are located along stribes: So what I do, is the following: I import the image from the web I get the image dimensions (w,...
52 views

### Use List convolve for aligning images

I am trying to align images of point spread functions using a convolution. Before doing it on real data, I wanted to try on simulated data. I have no problem with the 1-D case where I create 2 ...
119 views

### ImageAlign keeps breaking down

I have posted the same question on the community (http://community.wolfram.com/groups/-/m/t/1394441?p_p_auth=YV2a4wzw). I tried to register the movie posted below (compressed version here) using ...
450 views

### Processing images from NASA's Juno Jupiter Orbiter

Question Can you help me improve what I’ve done to create an enhanced-color picture from an image provided by NASA’s JunoCam? [My work is shown in the penultimate image of Jupiter in this post.] I’...
43 views

### How to reconstruct the result of ColorBalance manually?

I want to know about the mathematics behind white balance. I understand that it should be 3 different constants being applied to the red/green/blue channels. Thus I used ...
206 views

### How to change the color of the background of an image?

I have an image, and I want to change the color of its background. For example, I want to change the color of the sky from blue to green (or just to pure-white, for simplicity). I have already get the ...
66 views

### How to build a linear scale from a set of RGB color data obtained from a raster image with ImageData?

I'm trying to reconstruct a density plot from a raster image. The idea is to assign the uppermost value of the scale (an arbitrary linear scale) to the "most red" points of the image, and the lowest ...
69 views

### Reproduce orthogonal images from 2d consecutive image set

I have 3474 images (png, 8bit, gey scale, horizontal size x=3107 pixels, vertical size y=1200 pixels). The images can be downloaded here: https://drive.google.com/open?id=1rK7xlbFIGMG4O3Z-...
78 views

### Why would a symmetric image have an asymmetric PoolingLayer-Gradient Image?

I have a symmetric image img. For simplicity, I would use the below image as my example: ...
153 views

### How to extract graph from microscope image?

I have a microscope image of actin filaments and I'd like to extract the geometry of the bright lines into a Graph object: Here's what I have so far, using the ...
63 views

### Removing constant artifact/defect from several images

I have several images, each of which has the same artifact/defect. Does anybody have a suggestion to remove such an artifact? The images are disordered arrays of dots. The artifacts include the '...
115 views

### How to combine ListLogLogPlot and MatrixPlot?

Let's construct some data data = Exp@Sort@RandomReal[10, 100]; col = Transpose@MapIndexed[Exp[First@#2/20] + #1 &, RandomReal[10, {100, 99}]]; The ...
86 views

### How to use ComponentMeasurements with a matrix?

The function MorphologicalComponents works on both images and matrices, as in the following code: ...
207 views

### How to paste one image to another one, by forcing the former's background as transparent?

I have 2 images, imgBlackOnly and imgRedOnly as below, which already have the same ...
735 views

### How to force a specific region of an image to be totally white?

I have an image img, and a region iTrim as below:- ...
50 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 ...
95 views

### distance between nearest points [closed]

I have an image where i found the skeleton (red) and edges (blue). How can I calculate for each red points the distance to closest blue point? I though of something like this: ...
146 views

### Overlap two images and give movement and the result record it in an animated gif

I need to put the circular image 1 in the image with the hole 2 (and cover the gap) the idea is to create an animated gif that shows the image 1 turning to the right and image 2 to the left in a size ...
73 views

### How to plot image.mat in Wolfram

I have a picture that saved in ".mat" format. I am interested in plotting it with WL. But I get an empty image ...
414 views

### Convert QR code to a Nonogram puzzle

I remember there was a GCHQ puzzle where Nonogram was created to generate a QR code in 2015. It was a quite popular puzzle. I am wondering if MMA can be used to create a Nonogram from an existing QR ...
196 views

### Managing memory for video frames

I am trying to import a gif animation, which is about 80MB. The goal is to convert the image to grayscale, and then do some calculation on ImageData for each frame. ...
404 views

### Remove tourists from vacation photos

I just found this link: https://photoshoptrainingchannel.com/remove-tourists-stack-mode/ They used photoshop to remove the tourist from a series of photos. I was wondering if this is also possible in ...
54 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 ...
45 views

### Grouping components to form a complete perimeter

This is a question relating to grouping of components picked out using ComponentMeasurements to make a complete perimeter of a shape. My goal is to measure the perimeter of each of these worm-like ...
204 views

### Set pixel aspect ratio?

Bug probably present through all versions of Mathematica [CASE:4081592] Does Mathematica have a feature to set the pixel aspect ratio of 2D images? For example, ...
140 views

### Is there any inbuilt Mathematica function that can be used as a steerable filter?

I need a steerable pyramid filter for images and volumes. Is there any built-in Mathematica function or package for that as there is in Matlab? Edit 1: Firstly, I didn't ask for an implementation of ...