A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

1,301 questions
Filter by
Sorted by
Tagged with
313 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] ...
311 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 ...
305 views

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

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 ...
591 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.
43 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 ...
189 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. ...
218 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 ...
2k views

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

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

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

Bug introduced in 10.3 or earlier and persisting through 11.3 ...
77 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 ...
102 views

Error using accuracy and ConfusionMatrixPlot of ClassifierMeasurements

EDIT: Here is the complete code that i have used: ...
99 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, ...
501 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$ ...
42 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 ...
147 views

Mean RGB value of a locator region?

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

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 ...
166 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 ...
158 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
809 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: ...
113 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: ...
3k views

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

Coloring a map of India

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

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

You may have seen this video: https://www.youtube.com/watch?v=QVuU2YCwHjw. How does this work, and how to do it with Mathematica?
149 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[], ...
225 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, ...
159 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

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 ...
216 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 ...
609 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: ...
83 views

How to nicely label the colors in Colorize?

I have an image segmentation and I'd like to label with a SwatchLegend[]. Here's a MWE: ...
67 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 ...
66 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 ...
59 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: ...
57 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 ...
44 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 ...
2k views

Creating an example of video image tracking

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) ...
2k views

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

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 ...
228 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,...
466 views

Create a 3D face from the Shroud of Turin

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 @ ...
58 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 ...
62 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: ...
87 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
228 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 ...
129 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 ...
387 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 ...
47 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 ...
87 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 ...
185 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 ...