Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

9
votes
3answers
666 views

Check if image has alpha channel

How can I check if an Image has an alpha channel? "What have you tried?" AlphaChannel and ...
2
votes
1answer
66 views

Calculate the surface area of different elements in a picture (micrograph)

This is a micrograph of a hybrid material that contains glass fiber (small white dots), carbon fibers (big grey dots) and a matrix that contains everything! I would like to calculate the surface area (...
0
votes
0answers
24 views

How to run image manipulation function to an array of images?

I have multiple images imported into an array. My issue begins with using this array for an image manipulation function such as Inpaint. Inpaint only accepts a single image at a time. Here's how I ...
2
votes
1answer
75 views

Find Probability that Image Is Text

I can find out whether an image is text: ImageInstanceQ[img,Entity["Concept", "TextualMatter::m7642"]] And if an image is most likely text, I can find out the ...
4
votes
2answers
296 views

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 along a vector ...
14
votes
2answers
846 views

Precise cropping with ImageCrop

Bug introduced in 8 or earlier and persisting through 11.2.0 Reported to the support as [CASE:3968587]. Published on Wolfram Community. In the presence of alpha channel ...
8
votes
2answers
180 views

Removing horizontal noise artefacts from a (SEM) image

I've been trying to analyse some SEM images to determine grain areas and sizes. Some of my images (I've attached an example below) appear to have horizontal bands that manifest as regions with ...
5
votes
1answer
1k views

Neural network: Line detection in Image

I am playing around with Mathematica's new Neural Network toolbox and am trying to teach a network to detect lines in quite noisy images. An example Input image would look like the following: The ...
21
votes
2answers
1k views

How to project 3d image in the planes xy, xz, yz?

Some idea of how to do something similar to the image, but with any 3d object
19
votes
0answers
581 views

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
12
votes
4answers
560 views

How to extract a specific element from EXIF photographic metadata?

It's now possible to import photographs into Mathematica and import the EXIF data at the same time: i = Import["ExampleData/coneflower.jpg", "ImageWithExif"] You ...
2
votes
1answer
63 views

Plotting large scale image embeddings

I'm looking for help making publication-quality graphics for visualizing 2D embeddings of image datasets, so that they look like this: These two-dimensional embeddings of thumbnails (sometimes with ...
16
votes
1answer
241 views

Repairing a panorama

I was on a cruise and the panorama I took was warped due to the ship rocking: I'm hoping to correct this so that the horizon is level. Here's the full resolution image: ...
0
votes
0answers
43 views

How to assign an image to all the 12 faces of a Dodecahedron [duplicate]

How do i assign an image to all of the 12 faces of a Dodecahedron?
6
votes
2answers
256 views

Image processing: Removal of two spots in fundus images

I have many hundreds fundus images of the human eye. The yellow arrow points to two spots which I I want to remove. The final result should be a perfect circle. The removed area should be ...
1
vote
1answer
64 views

Clustering edge points of an image?

Consider the following image I would like to cluster the points obtained after edge detection and subsequently, would like to color the clustered edge points. My attempt: ...
9
votes
3answers
904 views

Detecting the outer edge of an object in an image

I am trying to extract the outer edge of the attached image. Could you please advice me how to do it?
1
vote
0answers
47 views

Improving the accuracy of the bounding box detection of TextRecognize

My problem concerns the text position detection in a scan. My goal is to find the bounding boxes of the text. ...
3
votes
1answer
109 views

Individualised test paper generation (and marking)

I would like to use mathematica to create individualised tests that can be printed out for students to complete(handwritten). I would also like to be able to generate individualised printed answers. ...
1
vote
0answers
46 views

Is it possible to resize an image without importing?

If we have a list of 1000 ULRs which refer to image files of the following form: http://...file1.jpg http://...file2.jpg ... http://...file1000.jpg Objective: We want to resize each image (e.g. ...
1
vote
1answer
77 views

Find outline of a cell

I have a set of images of biological cells, which look like this: How do I find the edge of these cells in a robust way (i.e. without having to manually tweak each one. I have three images here: <...
4
votes
1answer
108 views

Problem with InverseFourier of a 2d FFT of a non-squared image

I have the following 8bit grey scale image: The 2d FFT of this image, showing the color coded Abs[fft] values, is: The code to obtain the FFT image is: ...
2
votes
1answer
47 views

Make outline of a image thicker

I import a jpg image in my notebook. The result is like this: I'm interested in the outline so I wrote this code: ColorNegate[ EdgeDetect[ColorNegate[AlphaChannel[RemoveBackground[test]]]]] The ...
4
votes
1answer
96 views

What is the algorithm behind ImageRecolor?

I'm wondering which algorithm is implemented, given that recoloring requires a lot of assumptions to really get the desired color. For example, coloring a dark grayscale image into a light green can ...
8
votes
2answers
114 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. ...
0
votes
1answer
100 views

Robust face detection

FindFaces doesn't work when people are far away from the camera. I'm looking for a single accurate method of detecting one or more people in an images, at all ...
1
vote
1answer
82 views

Convolution in Fourier domain

I am computing the convolution of a disk Img in 2D numerical matrix form with a kernel Ker in the Fourier domain but the output ...
8
votes
2answers
224 views

Prevent background segmentation in watershed transform based on marker

I like to reproduce this accepted answer from stackexchange in MMA. While I would like to achieve a better segmentation than what I already got, at the moment my main problem is that the background is ...
0
votes
1answer
111 views

Creating a numerical table of values and using an interpolation of them to transform pixels in an image by the ImageTransformation command

I am trying to carry out point "Implementing Map" on this paper Interstellar wormholes however I am using my own equations not those given (only the same method). I have generated a list of values ...
0
votes
0answers
55 views

How to get Binarize to ignore already set background

I have grayscale images which contain a clear foreground and background, which Binarize is easily able to split out. Then within the foreground, I want to binarize again, to find the area around the ...
16
votes
3answers
729 views

How to place path lines on an image

I have a "sugarcane crop" image taken from above (with a Drone) which was pre-processed with the MorphologicalPerimeter and EdgeDetection functions of Mathematica, resulting in binary image with a ...
6
votes
3answers
185 views

How do I ColorQuantize to a predetermined mosiac builder's pallet of limited choices?

If one is already working with a specific pallet of colors (say 9 colors of jelly bean in a mosaic) is there a good way to convert any image into those predetermined color choices? The ...
6
votes
1answer
798 views

How to calculate the point spread function used in function ImageDeconvolve [closed]

Question Background How can estimate the PSF function to deblur an image of plate licence of a car It was marked as duplicate. How to enhance a fuzzy image I don't very agree the current answer of ...
2
votes
0answers
51 views

Converting video file to list of images to analyze pixels of each frame

I am trying to recreate the following physics experiment to analyze chaotic motion: https://www.researchgate.net/publication/275890532_Tracking_the_Motion_of_a_Double_Pendulum_Using_Mathematica I ...
3
votes
1answer
236 views

How to compare histograms of two Images?

Is there any function in Mathematica that I can use for comparing the image histogram ? There is a built-in function in OpenCV cv2.compareHist for distance measures ...
5
votes
0answers
71 views

Hyperspectral files in the ENVI format?

Have any of you had the pleasure of reading geospatial / hyperspectral files in the ENVI format? Headers that describe the data here, https://www.harrisgeospatial.com/docs/enviheaderfiles.html which ...
53
votes
3answers
3k views

Composition à la Mondrian

I would like to paint something like this or,even better, like this I have tried ...
3
votes
3answers
165 views

Another difficult background subtraction

I'm trying to remove the background but it is removing part of the bag in the foreground (because it is white too): Here's what I've tried: ...
0
votes
1answer
68 views

Join grayscale image with matrix plot

I have a 200x200 grayscale map map = Image[data, "Byte"] together with a matrix plot ...
5
votes
0answers
58 views

GaussianMatrix algorithm details

GaussianMatrix[] supports a Method -> "Bessel" option which the documentation describes (in the Details section) as: With ...
0
votes
0answers
59 views

Pixel-wise image manipulation

I downloaded an image from a website and imported it to Mathematica ...
16
votes
4answers
2k views

Can Mathematica be used to create an Artistic 3D extrusion from a 2D image and wrap a line pattern around it?

So here's somewhat of the general goal first: Here's an example of image-based line patterns Here is an example of an artists work in creating imagery using only lines bent as though distorted by an ...
3
votes
1answer
46 views

Extract plot from an image with diffused lines

I found an amazing question on how to obtain a data set from an existing plot, which detailed the process very nicely. Recreated the same steps on my end but it's not working, I am assuming because ...
0
votes
2answers
111 views

Detection of regions in image

I have this image: I would like to separate qualitatively 4 different regions into approximately such an image: The colors or gray shadings of the regions do not matter. How can this be achieved ...
0
votes
0answers
33 views

Changing the origin of the coordinate system aligned on an image when using the ImageFowardTransformation function

When using the image transformation command ImageFowardTransformation[image, function] the pixels of the image you input are in cartesian coordinates that by ...
4
votes
1answer
116 views

Why does Fourier give me a different picture than ImagePeriodogram?

I want to take a 2D fourier transform of some data, but when I try this I get unexpected results. When I use ImagePeriodogram I get something that looks like I ...
-3
votes
1answer
100 views

How is that distance between images calculated?

The command ImageDistance[Plot[x^2, {x, 0, 1}, PlotRange -> {0, 1.01}], Plot[x^2 + 0.01, {x, 0, 1}, PlotRange -> {0, 1.01}]] produces ...
2
votes
0answers
83 views

Using Image Transformation to create image sky view of what its like to be near black hole (Not a wormhole) [duplicate]

Question : I am trying to carry out point 3. "Implementing map" on page 13 in the paper Interstellar wormholes using my own equations not those in the paper. however am not 100% sure on how to go ...
0
votes
1answer
114 views

Adding white noise to a signal of two variables

When a signal depends on two variables, e.g., f[k1_, k2_] := Exp[I 0.75 (k1 + 0.3 k2)] + 1.5 Exp[I (0.2 k1 + 0.3 k2)] + Exp[I (0.2 k1 + 0.4 k2)]; where ...
0
votes
1answer
106 views

Creating a numerical table of values from an interpolating function resulting from NDSolve [closed]

I am trying to carry out point "Implementing Map" on this paper Interstellar wormholes however I am using my own equations not those given (only the same method). Part 1 I am trying to create a ...