Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions on the image processing capabilities implemented in Mathematica.

3
votes
2answers
130 views

Using image data to create a 3D Histogram

I have a black and white .tiff file of a beam spot: I am trying to characterize the source in a Monte Carlo program, to do this I want to convert the image into a 3D Histogram with controllable bin ...
-1
votes
0answers
21 views

ImageAlign for spot alignment [on hold]

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

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
votes
2answers
163 views

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] ...
0
votes
0answers
39 views

Convert Chinese character into a list of lines

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 ...
1
vote
1answer
31 views

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
votes
1answer
65 views

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
votes
1answer
119 views

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 ...
11
votes
1answer
441 views

How can I extract data from a diagram?

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.
5
votes
1answer
59 views

Import Integer images using Image`ImportExportDump`ImageReadTIFF

I can import 70000 x 2MB TIFF images (~140GB) using Image`ImportExportDump`ImageReadTIFF in about 3 minutes based on @Szabolcs solution to this question by @Kagaratsch which is fantastic. ...
1
vote
1answer
37 views

Confusion in the position of image coordinates

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 ...
9
votes
1answer
113 views

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

Bug introduced in 10.3 or earlier and persisting through 11.3 ...
4
votes
0answers
76 views

How to combine multiple image processing steps into a GUI

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, ...
2
votes
0answers
32 views

issue with ImageEffect; EdgeStylization

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
votes
1answer
70 views

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 ...
5
votes
1answer
128 views

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
votes
1answer
135 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: ...
6
votes
2answers
141 views

Interactive Labeling of Images

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 ...
3
votes
2answers
82 views

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
votes
2answers
71 views

Coloring a binary mask image

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: ...
10
votes
3answers
796 views

Coloring a map of India

Below is a map of India (img). and I can visualize it in the following way: ...
10
votes
1answer
161 views

Converting Image to full-length lines

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 ...
3
votes
1answer
73 views

ImageMesh for continuous 3D images

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 this ImageMesh[], ...
2
votes
0answers
34 views

Smoothing a image while retaining the edges

In my previous post here it is mentioned that using ImageResize before ImageGraphics will increase image quality of the final ...
8
votes
1answer
168 views

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
votes
1answer
303 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: ...
1
vote
1answer
46 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 ...
3
votes
1answer
61 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 ...
0
votes
0answers
51 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: ...
0
votes
0answers
47 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 ...
7
votes
1answer
79 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. ...
11
votes
2answers
240 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$ ...
0
votes
0answers
71 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 ...
4
votes
3answers
161 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,...
3
votes
1answer
54 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 ...
1
vote
1answer
55 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: ...
0
votes
1answer
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
3
votes
3answers
76 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 ...
4
votes
1answer
215 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 ...
2
votes
0answers
63 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 ...
2
votes
0answers
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 ...
3
votes
1answer
44 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 ...
10
votes
1answer
290 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 ...
11
votes
1answer
159 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 ...
4
votes
1answer
35 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 ...
3
votes
0answers
70 views

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
votes
0answers
70 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: ...
3
votes
2answers
68 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,...
2
votes
0answers
46 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 ...
1
vote
2answers
107 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 ...