# image-processing's questions - English 1answer

1.194 image-processing questions.

### 3 How to find the mark centroid

This is my target img: I can binarize it and select the mark component:bin = Opening[ColorNegate[Binarize[img, 0.8]], 4]...

### -1 ImageAlign for spot alignment

seems that nothing happened while applying this code, new images are not aligned as can be proved by the ImageDistance output (103 pixels). ...

### ImageAlign doesnt work [on hold]

Seems that my code doesn't really align the Images, I don't understand why :( aperture = Table[Import["C:\Nim\images\"<>IntegerString[i]<>"\"<>IntegerString[j]<>".tiff"],{i,1,3},{j,0,9}...

### 4 How can I add drop shadows to the text of non-input/output cells?

1 answers, 289 views image-processing notebooks fonts
Inspired by simon woods's wonderful shadow function, I want to add drop shadows to all the text of non-input/output cells in a notebook, something like this: By using simon woods's shadow function, I ...

### Convert Chinese character into a list of lines

0 answers, 39 views image-processing conversion
For a puzzle I want to list pairs of Chinese cities. Once a line is drawn between each pair of cities the resulting lines will spell out a phrase in Chinese which is the answer to the puzzle. I've ...

### 11 How can I extract data from a diagram?

1 answers, 440 views image-processing data-acquisition
Below you will see a diagram containing three curves. How can I extract data points from the three colored curves? I need to use the original data.

### 1 Plot number of overexposed pixels per column in grey scale image

I have a grey scale image (1600*480 pixels, 8 bit): https://i.imgur.com/BqgJRv7.png (update) I want to determine the number of overexposed pixels in each column. Then I want to plot the a combined ...

### 3 How to control boundary markers for overlapping FEM meshes?

I am trying to create FE meshes from vector or bitmap images and have come across the following issue. This is best shown using the following simplified code. ...

### 4 How to create meshes with multiple regions from 2D images?

I would like to import 2D images to Mathematica and to use them to create meshed regions which can then be used for FEM. I create the images in Adobe illustrator so can either import a vector based ...

### 32 How to make a curve selectable from a scaned image and convert it to a list of coordinates

I have a scanned image (binary-ized): Is there any way to reduce one of these curved lines (full or dotted) to a series of its coordinates (e.g., sampling interval of 0.01 on x-axis)? I've read ...

### 5 Import Integer images using ImageImportExportDumpImageReadTIFF

I can import 70000 x 2MB TIFF images (~140GB) using ImageImportExportDumpImageReadTIFF in about 3 minutes based on @Szabolcs solution to this question by @Kagaratsch which is fantastic. ...

### 9 Wha't the meaning of NaN in the descriptor of ImageKeypoints

1 answers, 113 views bugs image-processing machine-learning
Bug introduced in 10.3 or earlier and persisting through 11.3 ...

### 1 Confusion in the position of image coordinates

1 answers, 37 views image-processing image
I am struggling to work out how image coordinates are calculated and how to be consistent when finding particular points in an image using these coordinates for further analysis. I don't think it is ...

### 2 Error using accuracy and ConfusionMatrixPlot of ClassifierMeasurements

1 answers, 80 views image-processing machine-learning
EDIT: Here is the complete code that i have used: ...

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

1 answers, 79 views bugs image-processing machine-learning
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. ...

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

### 4 How to combine multiple image processing steps into a GUI

0 answers, 75 views image-processing gui-construction
I'm trying to combine several Manipulate objects into a single workflow, for semi-automating an image analysis. I have worked out how to do each individual part, ...

### 11 How to define a PixelShuffle Layer?

2 answers, 240 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$ ...

### 2 issue with ImageEffect; EdgeStylization

0 answers, 32 views image-processing image
I have a issue with ImageEffect/EdgeStylization. After importing a .jpg-file like test = Import["C:\\........\\DSCN0018_v1.jpg"]The result is: Then I take a ...

### 4 How to achieve faster performance on plotting complex valued functions

I'm very interested in visualizing complex valued functions $f:\mathbb{C} \rightarrow \mathbb{C}$. Especially interesting to me are Möbius transformations. I found a nice way of visualizing these ...

### 7 Mean RGB value of a locator region?

1 answers, 122 views image-processing color locator
i am working at a color deconvolution using Ruifrok and Johnston's method (as described here). To get a custom stain, I need to realize a vector with mean RGB values of a region in a given image. So ...

### 3 ImageTransformation and corresponding points

I have identified a list of corresponding points on two different images manually. I have found the geometrical transformation between such sets of points using ...

### 6 Interactive Labeling of Images

2 answers, 141 views manipulate image-processing dynamic
I have a list of pictures:pictures = {im1,im2,im3,im4,im5,im6}Where im1: im2: im3: im4: im5: im6: I want to assign the pictures to labels (1,2,3,4,5 ...

### 5 Isolate structures from image

I have a medical brain image from which I'm trying to isolate the brain (the gray pixels) from the rest (black and white parts). I'm looking for some functions that are best suited for this. Thanks

### 5 How to perform noisy circle detection

1 answers, 135 views image-processing neural-networks
I want to detect circles that are embedded in noise. For this I created a few circles with some defined signal-to-noise ratio: ...

### 3 How to find the center of rows in a grayscale image of a data table

I have such images I want to draw a red line in every line content like this: If I accumulate the pixel value for every line, I can get the red curve line: ...

### 4 Coloring a binary mask image

2 answers, 71 views image-processing color
My answer to this question involved changing the white in a binary mask to a different color. I came up with a few ways to do this: ...

### 20 What is the fastest way to locate an image inside a larger image?

let b = let c = How to do:find[c,b]that returns the bounding box of c in b? Notes ...

### 10 Coloring a map of India

Below is a map of India (img). and I can visualize it in the following way: ...

### 10 Converting Image to full-length lines

1 answers, 161 views image-processing generative-art
I want to write a program in Mathematica that takes an image and converts it into a drawing made completely of straight full-length lines. The program should check all the lines of the image, then ...

### 4 How to make a photo into a looped ken burn? [closed]

I have a website that supports video background, I've always used static pictures, but would like to change them into looping ken burns style videos where the image's crop slowly drifts around and ...

### 40 How can I draw a Homer with epicycloids? [duplicate]

1 answers, 5.483 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?

### 3 ImageMesh for continuous 3D images

1 answers, 73 views image-processing mesh
I have a 3D image containing distance fields, and would like to produce a mesh region from a contour at a fixed level. I found two options for thisImageMesh[], ...

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

### 2 Smoothing a image while retaining the edges

0 answers, 34 views image-processing image
In my previous post here it is mentioned that using ImageResize before ImageGraphics will increase image quality of the final ...

### 8 Removing Presenter From Slides

Often you can find slide presentation where the presenter is also shown on the same slide: When no pdf slides are available, I sometimes take scree shots of the video. However, I would like to remove ...

### 12 Converting image into graphics

1 answers, 303 views graphics image-processing
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: ...

### 1 How to nicely label the colors in Colorize?

2 answers, 63 views image-processing color legending
I have an image segmentation and I'd like to label with a SwatchLegend[]. Here's a MWE: ...

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

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

1 answers, 61 views image-processing distance
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 ...

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

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

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

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

### 10 Creating an example of video image tracking

2 answers, 1.439 views import image-processing image video
Note: Please see comments below @bobthechemist's answer for why question was edited. I've made a video of two teams playing soccer. Now I would like to translate each soccer-player to a (x,y) ...

### 39 Voronoi diagrams for generators other than points

Any suggestions on how to determine a Voronoi diagram for sites other than points, as e.g. in the picture below? The input is a raster image.

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