# image-processing's questions - English 1answer

1.163 image-processing questions.

### 2 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. ...

### 9 How to define a PixelShuffle Layer?

1 answers, 149 views image-processing neural-networks
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$ ...

### 10 SSIM index in Mathematica

I was wondering, how one could compute the SSIM index in Mma ? The The structural SIMilarity (SSIM) index, which is a known method for measuring the similarity between two images. Here is the ...

### 4 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,...

### 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 ...

### 9 Convert QR code to a Nonogram puzzle

3 answers, 225 views matrix image-processing array code-request
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 ...

### 6 Create a 3D face from the Shroud of Turin

2 answers, 337 views image-processing image3d
There is an image of the Shroud of Turin: How to recreate Jesus's face from this image? And how to create a 3D face of Jesus Christ, by using the shroud of Turin? I tried: ImageAdjust @ ...

### 3 Need Help for Layout

1 answers, 52 views image-processing grid-layouts
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 ...

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

1 answers, 51 views image-processing image pdf-format
I have created the following PDF: Basically an image, with a description underneath and a space to take some personal notes: ...

### 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

### 4 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 ...

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

3 answers, 65 views image-processing color image
I have an image square.png as below:- I imported the image as ImageSquare, and then applied ...

### 2 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 ...

### 10 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 ...

### 2 Identifying overlapping incomplete squares in image

0 answers, 35 views image-processing 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 ...

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

1 answers, 38 views functions image-processing
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 ...

### 3 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 ...

### 3 How can I implement a region splitting and merging technique for image segmentation?

Consider an image (img) as There are six different textures in the image and I want to segment them using region splitting and merging. The property that I wish to ...

### 10 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 ...

### 4 Using TotalVariationFilter on dataset with missing data

1 answers, 32 views image-processing missing
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 ...

### Peak Signal to Noise Ratio of Images

I am filtering a blurred image, and want to evaluate the performance of Peak Signal to Noise Ratio (PSNR) in Mathematica version 9.0. But I am facing the problem of evaluating the PSNR. Could anyone ...

### 13 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. ...

### 3 How to rectangularize photographs within photographs?

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 ...

### 2 How to achieve this fractal image transformation?

0 answers, 61 views image-processing image fractals
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: ...

### 3 Visualizing Color Values On Original Image

2 answers, 63 views image-processing 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,...

### 1 How can I separate the dress from the background?

img=Import["https://i.stack.imgur.com/NjyIK.jpg"]The dress is closely similar with the color of the background stair rail. How can I binarize the image to get ...

### 12 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’...

### 1 ImageAlign keeps breaking down

2 answers, 102 views image-processing debugging
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 ...

### 2 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 ...

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

0 answers, 29 views image-processing color image
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 ...

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

3 answers, 185 views image-processing color 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 ...

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

1 answers, 47 views plotting image-processing
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 ...

### 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-...

### 5 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: ...

### 4 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 '...

### 5 How to combine ListLogLogPlot and MatrixPlot?

1 answers, 103 views plotting image-processing visualization
Let's construct some datadata = Exp@Sort@RandomReal[10, 100]; col = Transpose@MapIndexed[Exp[First@#2/20] + #1 &, RandomReal[10, {100, 99}]];The ...

### 36 How to find circular objects in an image?

How could I use morphological processing to find circular objects in an image? More specifically, I need to detect road signs. I need to get the "80 speed limit" sign from this image:

### 12 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 ...

### 5 How to use ComponentMeasurements with a matrix?

1 answers, 75 views matrix image-processing image
The function MorphologicalComponents works on both images and matrices, as in the following code: ...

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

4 answers, 197 views image-processing image
I have 2 images, imgBlackOnly and imgRedOnly as below, which already have the same ...

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

I have an image img, and a region iTrim as below:- ...

### 2 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 ...

### 39 How can I draw a Homer with epicycloids?

1 answers, 4.781 views graphics image-processing fourier-analysis
You may have seen this video: https://www.youtube.com/watch?v=QVuU2YCwHjw. How does this work, and how to do it with Mathematica?

### 2 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 ...

### 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: ...

### 1 How to plot image.mat in Wolfram

1 answers, 68 views image-processing import
I have a picture that saved in ".mat" format. I am interested in plotting it with WL. But I get an empty image ...

### 10 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. ...

### 10 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, ...

### 2 How to refocus camera?

I'm trying to read a barcode though my computer's webcam but it fails because the ImageCapture won't refocus the camera when I put the code close to it, and this it is blurry: Is there anyway to ...

### 13 Precise cropping with ImageCrop

2 answers, 796 views bugs image-processing transparency
Bug introduced in 8 or earlier and persisting through 11.3.0 Reported to the support as [CASE:3968587] In the presence of alpha channel ImageCrop doesn't remove ...