Skip to main content

Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
3 votes
1 answer
270 views

What are all the ways to remove noise from an image and how to choose the right method?

I am learning how to use image processing and I am a bit overwhelmed by all the options to remove speckle noise in an image. Here is a list of functions that I learned about: ...
userrandrand's user avatar
  • 5,947
0 votes
0 answers
60 views

How to repair possible origin problem in png files?

i tell you, my daughter uses a figure cutting program called Silhouette Studio and loads and traces png files so that later a machine cuts them, recently she acquired some png files that behave in a ...
padre's user avatar
  • 273
4 votes
1 answer
292 views

Image distance between noisy and clean images

This is what I am trying to do: Download MNIST images: ...
sra's user avatar
  • 717
2 votes
2 answers
148 views

Reading heights of bars in a published figure

I have the following image: I want to draw ten horizontal lines (per 5% interval shown) stretching across the image and starting at the y-axis. The intention is to read the exact height of each bar. ...
user avatar
12 votes
4 answers
2k views

Text recognition - extracting table of text from image

I want to extract table from the image bellow as a list of strings. I tried the following but it does not work. ...
azerbajdzan's user avatar
  • 20.9k
1 vote
1 answer
159 views

Recovering data points and reproducing a figure

Yesterday, I asked a question here, that how can one read off the coordinates of the points and reproduce a published plot. Daniel Huber provided an immensely helpful answer and I could reproduce the ...
user avatar
0 votes
1 answer
175 views

How to reproduce a figure of a paper in Mathematica? [duplicate]

I have the following figure: I'd like to reproduce it in Mathematica. It's doable to read the positions of the points by eye and then plot them; but, is there a more precise way of doing it?
user avatar
2 votes
1 answer
108 views

Why do two images of same ImageDimensions display very differently in notebook?

I've downloaded two images from the internet. They are identical sizes, yet they are displayed quite differently in the notebook. Why? Here's the example: ...
John's user avatar
  • 2,469
0 votes
0 answers
38 views

Is it possible to block the random Effect of Gaussian Noise in several channels of a RGB image

Consider a RGB image, Lena sample image. We've added an GaussianNoise. Actually, I think, the ...
HyperGroups's user avatar
  • 8,629
1 vote
1 answer
81 views

How to Generate an 3 channels image like that done by Exporting as PNG with ColorMapLength option

data=Uncompress[FromCharacterCode[ Flatten[ImageData[Import["https://i.sstatic.net/67lQS.png"],"Byte"]]]]; img=Image[data] This is the sample ...
HyperGroups's user avatar
  • 8,629
5 votes
1 answer
193 views

Sort symbols or characters by image complexity

As an example, I would like to sort the following characters by some sort of complexity measure: ...
userrandrand's user avatar
  • 5,947
3 votes
1 answer
233 views

How to obtain a crisp maybe vector graphics format image from a symbollic expression

[EDIT : The image should stay within Mathematica so I can not use Export["file.svg", expression] as Import does not ...
userrandrand's user avatar
  • 5,947
8 votes
1 answer
246 views

Detecting Hexagonal Components in Images

I am trying to detect and characterize the size, orientation, and centroid of nearly perfect hexagonal features in images. The built-in MorphologicalComponents ...
OpticsMan's user avatar
  • 576
3 votes
1 answer
101 views

How to make a drop-shadow for a Graphics3D lines and curves?

I have a plane a one line parallel to the plane and I want to make a drop-shadow for this line onto the plane. I try Blur but I had have no succes and I did it ...
wmora2's user avatar
  • 599
4 votes
1 answer
159 views

How can I remove the background from a bokeh photo?

Is there a way to remove the bokeh background from photos using Mathematica? An example photo is given below. I tried the methods that are answered here and here, but they don't seem to work.
codebpr's user avatar
  • 2,513
2 votes
0 answers
62 views

Parallel image comparison function keeps increasing memory

I have written the following code to align two arbitrary images: ...
Thanatomanic's user avatar
8 votes
3 answers
375 views

How to get the width of the largest-area rectangle that contains only black pixels in a binarized image

The following image is only for illustration and I am not sure if that is really the largest-area rectangle with only black pixels. So the largest-area rectangle is possibly this (in Red): The ...
Hussain-Alqatari's user avatar
2 votes
0 answers
58 views

Is it possible to extract geometric transforms from ImageStitch (Mathematica 13)?

Is there a way to extract the Method settings and/or geometric transforms that ImageStitch[] (Mathematica 13) uses to compose a list of images? I have ~40 digital microscope image frames along with ...
Adam's user avatar
  • 91
3 votes
1 answer
226 views

Different image brightness when exporting same plot to PDF and PNG

I noticed that exporting a plot to PDF results in increased brightness relative to exporting the same plot to PNG. Here are screenshots of a PDF and a PNG obtained from the same plot. As you can see, ...
Matteo Raffaelli's user avatar
5 votes
2 answers
544 views

2D Projection of a 3D plot on the three walls using three different colours

I was plotting Lorenz Attractor in 3D. Now, I wanted to take three projections of it on three different planes(XY, YZ, ZX) with four different colours. I mean I want my 3D attractor in one colour and ...
user444's user avatar
  • 2,688
4 votes
1 answer
266 views

How to get the cross sectional area of a wine bottle picture/photo by doing an appropiate image processing on it?

We are working on a PDE Acoustic model in which the geometry of analysis is the cross-sectional area of a wine bottle. We want to get the geometry from a wine bottle image by doing an appropriate ...
Bastian27's user avatar
  • 171
3 votes
1 answer
173 views

Apparent bug in ImageHistogram

When building a simple image with only red Rred = Image[Table[{r, 0, 0}, {r, 0, 255}, {g, 0, 255}], "Byte"], the corresponding histogram displays badly: each channel has a wrong colour ...
PaoloS's user avatar
  • 31
1 vote
0 answers
60 views

How can I get a BarLegend for ImageDisplacements?

I'm trying to compute Optical flow using ImageDisplacements.In the example given in the documentation, there is a figure showing the levels of displacement. How can I get a Barlegend or something ...
dinesh's user avatar
  • 105
20 votes
4 answers
1k views

Improve scanned image with handwritten text for high-contrast printing: how it can be done with Mathematica?

I have a set of scanned documents with handwritten text which by default is printed with very low contrast. Here is an example (a part of a document): ...
Alexey Popkov's user avatar
5 votes
1 answer
333 views

How can I compress DICOM images?

I have 193 dcm files in a folder. I will like to combine these images into .dcm.gz format (e.g. images.dcm.gz) and I was wondering how this could be done in Mathematica. Thank you in anticipation of ...
Dean's user avatar
  • 655
4 votes
1 answer
182 views

How to get to ComponentMeasurements[] from orthographic projection of a Graphics3D[] object?

Let's say I have some composite 3D graphics of various shapes. For simplicity, let's say these are just two capsules, like below: ...
TumbiSapichu's user avatar
  • 1,623
0 votes
1 answer
81 views

Rasterize : actual size, within a code [closed]

How to get rasterized image of actual size ? ...
imida k's user avatar
  • 4,325
0 votes
1 answer
139 views

ComponentMeasurements

Is someone experienced with Application Nr. 3 shown in the ComponentMeasurements documentation: "Select complete and non-overlapping cells"? That's the code (you can find the picture "i&...
Merlin's user avatar
  • 41
10 votes
3 answers
840 views

What is the best method to search pattern for 2D list?

What is the best method to search patterns for 2D list ? Let L be following 2D-list : ...
imida k's user avatar
  • 4,325
5 votes
1 answer
259 views

Finding connected components in 2D integer coordinate system

Let L be a finite set of pair of integers. I want to partition L according to connectivity The connectivity is intuitive : Rule1 ...
imida k's user avatar
  • 4,325
3 votes
0 answers
181 views

TrainImageContentDetector gives very poor result on GPU compared to CPU

On the doc page of TrainImageContentDetector, there is an example of heart detector training. I tried this example with different TargetDevice and constrained the <...
matheorem's user avatar
  • 17.3k
3 votes
0 answers
71 views

Mathematica failing to export consistent layout

Mathematica is a great tool but when it comes to layout generation is quite poorly intuitive: I would love that exporting to images and SVGs could be more friendly and compliant with graphic design ...
user305883's user avatar
5 votes
1 answer
610 views

High Quality animation with Export?

This is my second question here. Recently I've been trying to compile a video simulation of wave propagation via ComplexPlot[] with ...
deedeefive's user avatar
0 votes
2 answers
187 views

Import causes image to lose resolution

I am having trouble preserving image resolutions in Mathematica 13.0.1. The following is a free high-resolution GIF from Giphy dot com, pasted below for your convenience: I notice that even if I ...
Shredderroy's user avatar
  • 5,331
1 vote
0 answers
78 views

Recognize text in image

I have the following image and I want to extract the text on the axes. I used the following code: ...
holistic's user avatar
  • 3,005
2 votes
1 answer
186 views

Estimating values from a timeseries picture

I have the following picture (one of several hundred): I want to basically read out every y-value for every year on the x-axis from this graphic and create a data table from it. For example, I want ...
holistic's user avatar
  • 3,005
3 votes
0 answers
132 views

Applying Super-Resolution to differently sized images

I would like to make some images larger and noticed that there is a page in the documentation for doing super-resolution using a network structure. It's called "A Model for Super-Resolution."...
bill s's user avatar
  • 69.5k
2 votes
1 answer
123 views

Highlight area on 3D image, volume

I am trying to highlight a specific area in a 3D image, all the solution I found was for 2D images and the functions are not compatible with 3D images if anyone has a solution, I would be appreciated ...
somy's user avatar
  • 21
27 votes
3 answers
2k views

Animating battlefield data map of war in Ukraine

UPDATE on FINAL RESULT Thanks to @SquareOne effort I generated higher-resolution videos with smoothing transitions that can be seen here: https://www.linkedin.com/feed/update/urn:li:activity:...
Vitaliy Kaurov's user avatar
5 votes
3 answers
263 views

Implementing fast linear search for perfect vertical image alignment

After experimenting with image alignment aprroaches presented here and here and some other approaches involving ImageDistance and ...
Alexey Popkov's user avatar
2 votes
1 answer
170 views

Stitching overlapping screenshots of a page

Suppouse we have a series of screenshots of a webpage, taken by hand at different scrolling positions. All they have equal width and height and random scrolling positions. We can imitate it as follows:...
Alexey Popkov's user avatar
1 vote
0 answers
51 views

Is it possible to add new concept to ImageContents

I was hoping to use ImageContents to locate some specific objects in a series of images with a bounding box. However, ...
Tomi's user avatar
  • 4,594
2 votes
1 answer
681 views

Rectangular Image Segmentation?

I'd like to segment an image such that the components are rectangles. Is this possible out of the box? For example: ...
M.R.'s user avatar
  • 31.7k
2 votes
0 answers
148 views

How to improve the accuracy of grain statistics

Grain boundaries are usually not very distinct, like pic1 , pic2 and pic3 I have made a edge mask in photoshop like the following: Then I can detect the number of ...
yode's user avatar
  • 27k
8 votes
1 answer
277 views

How can I create accurate image masks from Graphics?

I am looking to generate image masks using Graphics. For this, the requirements are that: The rasterized mask must have the exact same dimensions as the image with ...
Szabolcs's user avatar
  • 236k
3 votes
0 answers
89 views

Video processing: Efficient way to apply function to pixel time stack (FIJI's Intensity Z-projection)

Starting from a Video, I would like to apply a function f to the stacks of intensity values, over time, for each pixel. In FIJI ...
rhermans's user avatar
  • 37k
2 votes
0 answers
72 views

Crop or mask geographics

I am trying to crop a map drawn with GeoGraphics. The map consists of Line and Polygon ...
mikabozu's user avatar
  • 413
7 votes
0 answers
338 views

Background removal with hair

I'd like RemoveBackgound to work on images where the foreground boundary is nontrivial e.g. with hair: ...
M.R.'s user avatar
  • 31.7k
1 vote
1 answer
182 views

Fitting an Equation to an Image

I'm very new to data analysis and I'm trying to figure out how I can fit an equation to an image I generated from a large set of data I collected. I'd then want to overlap this plot to the image to ...
psf100's user avatar
  • 51
3 votes
2 answers
262 views

Skeletonizing an image

I'm trying to skeletonize an image (ref) img = Import["https://i.sstatic.net/q2xUi.png"] graph= MorphologicalGraph[img] Input image: Skeleton generated:...
Natasha's user avatar
  • 359

1 2
3
4 5
34