Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Recovering Data Points from an image with log axis

I saw this question (Recovering data points from an image) and it works when axis are linear, but, what if axis are log,log (red curve below) or linear,log (blue curve) like this:
  • 41
0 votes
0 answers
56 views

How to restore a photo by using two photos

I have same two photos. They are both in need of restoration. How can I sort of combine them such that I get the best of both worlds? Image#1 Image#2
  • 566
3 votes
1 answer
65 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 ...
  • 549
1 vote
0 answers
49 views

How to 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 answered here and here but they don't seem to work.
  • 585
2 votes
0 answers
50 views

Parallel image comparison function keeps increasing memory

I have written the following code to align two arbitrary images: ...
8 votes
3 answers
260 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 ...
2 votes
0 answers
40 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 ...
  • 91
3 votes
1 answer
187 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, ...
  • 153
4 votes
2 answers
428 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 ...
  • 664
4 votes
1 answer
218 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 ...
2 votes
1 answer
166 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 ...
  • 21
1 vote
0 answers
24 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 ...
  • 73
19 votes
4 answers
669 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): ...
4 votes
1 answer
105 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 ...
  • 635
4 votes
1 answer
107 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: ...
  • 1,563
0 votes
1 answer
64 views

Rasterize : actual size, within a code [closed]

How to get rasterized image of actual size ? ...
  • 3,221
0 votes
1 answer
68 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&...
  • 41
9 votes
3 answers
656 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 : ...
  • 3,221
5 votes
1 answer
181 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 ...
  • 3,221
3 votes
0 answers
118 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 <...
  • 16.4k
3 votes
0 answers
54 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 ...
4 votes
0 answers
155 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 ...
0 votes
2 answers
122 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 ...
  • 4,871
1 vote
0 answers
52 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: ...
  • 2,723
2 votes
1 answer
136 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 ...
  • 2,723
3 votes
0 answers
74 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."...
  • 66k
2 votes
1 answer
96 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 ...
  • 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:...
5 votes
3 answers
229 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 ...
2 votes
1 answer
83 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:...
1 vote
0 answers
42 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, ...
  • 3,862
2 votes
1 answer
290 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: ...
  • 30.8k
2 votes
0 answers
140 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 ...
  • 24.6k
8 votes
1 answer
223 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 ...
  • 228k
3 votes
0 answers
65 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 ...
  • 31.2k
2 votes
0 answers
48 views

Crop or mask geographics

I am trying to crop a map drawn with GeoGraphics. The map consists of Line and Polygon ...
  • 393
7 votes
0 answers
313 views

Background removal with hair

I'd like RemoveBackgound to work on images where the foreground boundary is nontrivial e.g. with hair: ...
  • 30.8k
1 vote
1 answer
96 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 ...
  • 51
3 votes
2 answers
221 views

Skeletonizing an image

I'm trying to skeletonize an image (ref) img = Import["https://i.stack.imgur.com/q2xUi.png"] graph= MorphologicalGraph[img] Input image: Skeleton ...
  • 319
2 votes
1 answer
141 views

Generating a network from an image

This is a follow up to my previous question here I have to skeletonize an image (ref) and convert the skeleton into a network. I've tried the following ...
  • 319
1 vote
0 answers
81 views

Skeletonize an image

I'm trying to skeletonize an image (ref) bin = Import["binary.png"] skeleton = Pruning[Pruning@Thinning[bin], 15] Input binary image: Skeleton generated:...
  • 319
2 votes
1 answer
112 views

How do i plot a graph for width vs height of the slits from an image

I need to calculate the width of the slits along the length of each slits. I am new to image processing in mathematica and I need to plot a graph showing how the width changes along the length. I have ...
  • 21
0 votes
1 answer
69 views

Image of house being repaired via optimization (FindMinimum) example in documentation?

In Mathematica's documentation, I recall seeing an example where a noisy image of a house was repaired using an optimization method (possibly FindMinimum) with a very large number of parameters (one ...
2 votes
3 answers
153 views

Recover data from an image of scatter plot

I have this scatter plot and regression line for which I wish I had the original data. I know I can use the coordinates tool in Mathematica to get individual points but that is very tedious and time-...
  • 649
1 vote
1 answer
103 views

How to get the Histogram based on the intensity cross section of each spot?

I am supposed to plot the histogram based on the intensity cross-section of each circular area, I have done counting manually each area based on the pixel intensity cross-section of each green and red ...
  • 33
8 votes
2 answers
236 views

Is it possible to extract vertices and lines from this image of nonplanar graph?

The recent post was particularly interesting (see Is it possible to extract vertices and lines from this image?), but I found was that method of the comments seemed unreliable when the graph was ...
  • 1,179
14 votes
2 answers
656 views

Is it possible to extract vertices and lines from this image?

I have the following image Is it possible to extract the lines from this image and then convert those lines to a graph representation? I tried using ImagesLines[] ...
1 vote
0 answers
63 views

How to find the spatial coordinate in a Geotiff that is not recognized by Mathematica as Geotiff [closed]

I am trying to read a geotiff file that is not recognized by Mathematica as a geotiff file. ...
-3 votes
2 answers
88 views

Color-slicing transformations that detect green wood sorrel leaves within an RGB cube [closed]

Color-slicing transformations that detect green wood sorrel leaves within an RGB cube.
3 votes
1 answer
89 views

Code to rebuild a patchwork image

I'm trying to rebuild an image which has been cut into strips vertically and horizontally then the ordering of the strips has been rearranged. For example: So far I've only been able to come up with ...

1
2 3 4 5
32