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.

9
votes
1answer
126 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
39 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
142 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
52 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
50 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
76 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
2
votes
3answers
65 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
201 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
61 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
35 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
37 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
278 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 ...
10
votes
1answer
120 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
32 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
65 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
61 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
62 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
37 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
100 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 ...
12
votes
2answers
401 views

Processing images from NASA's Juno Jupiter Orbiter

Question Can you help me improve what I’ve done to create an enhanced-color picture from an image provided by NASA’s JunoCam? [My work is shown in the penultimate image of Jupiter in this post.] I’...
1
vote
0answers
29 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 ...
6
votes
3answers
183 views

How to change the color of the background of an image?

I have an image, and I want to change the color of its background. For example, I want to change the color of the sky from blue to green (or just to pure-white, for simplicity). I have already get the ...
1
vote
1answer
47 views

How to build a linear scale from a set of RGB color data obtained from a raster image with ImageData?

I'm trying to reconstruct a density plot from a raster image. The idea is to assign the uppermost value of the scale (an arbitrary linear scale) to the "most red" points of the image, and the lowest ...
0
votes
2answers
61 views

Reproduce orthogonal images from 2d consecutive image set

I have 3474 images (png, 8bit, gey scale, horizontal size x=3107 pixels, vertical size y=1200 pixels). The images can be downloaded here: https://drive.google.com/open?id=1rK7xlbFIGMG4O3Z-...
5
votes
1answer
69 views

Why would a symmetric image have an asymmetric PoolingLayer-Gradient Image?

I have a symmetric image img. For simplicity, I would use the below image as my example: ...
3
votes
2answers
131 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 ...
4
votes
1answer
60 views

Removing constant artifact/defect from several images

I have several images, each of which has the same artifact/defect. Does anybody have a suggestion to remove such an artifact? The images are disordered arrays of dots. The artifacts include the '...
5
votes
1answer
103 views

How to combine ListLogLogPlot and MatrixPlot?

Let's construct some data data = Exp@Sort@RandomReal[10, 100]; col = Transpose@MapIndexed[Exp[First@#2/20] + #1 &, RandomReal[10, {100, 99}]]; The ...
5
votes
1answer
74 views

How to use ComponentMeasurements with a matrix?

The function MorphologicalComponents works on both images and matrices, as in the following code: ...
6
votes
4answers
197 views

How to paste one image to another one, by forcing the former's background as transparent?

I have 2 images, imgBlackOnly and imgRedOnly as below, which already have the same ...
2
votes
5answers
726 views

How to force a specific region of an image to be totally white?

I have an image img, and a region iTrim as below:- ...
2
votes
0answers
46 views

Connect the nearest points in segmented image

I am trying computer vision for document analysis of datasheets.And quite new to mathematica My goal is to connect and segment out the part number with part in the drawing considerably something ...
0
votes
1answer
76 views

distance between nearest points [closed]

I have an image where i found the skeleton (red) and edges (blue). How can I calculate for each red points the distance to closest blue point? I though of something like this: ...
2
votes
1answer
123 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 ...
1
vote
1answer
68 views

How to plot image.mat in Wolfram

I have a picture that saved in ".mat" format. I am interested in plotting it with WL. But I get an empty image ...
9
votes
3answers
224 views

Convert QR code to a Nonogram puzzle

I remember there was a GCHQ puzzle where Nonogram was created to generate a QR code in 2015. It was a quite popular puzzle. I am wondering if MMA can be used to create a Nonogram from an existing QR ...
10
votes
2answers
172 views

Managing memory for video frames

I am trying to import a gif animation, which is about 80MB. The goal is to convert the image to grayscale, and then do some calculation on ImageData for each frame. ...
2
votes
1answer
183 views

Remove tourists from vacation photos

I just found this link: https://photoshoptrainingchannel.com/remove-tourists-stack-mode/ They used photoshop to remove the tourist from a series of photos. I was wondering if this is also possible in ...
3
votes
1answer
50 views

Reclassify and colorize a grayscale image in several regions according to given pixel value ranges

First of all, my apologies if this is a duplicate question, I did my best at trying to find a previous possible answers. I’m trying to find a more efficient way to reclass and colorize a single ...
1
vote
0answers
33 views

Grouping components to form a complete perimeter

This is a question relating to grouping of components picked out using ComponentMeasurements to make a complete perimeter of a shape. My goal is to measure the perimeter of each of these worm-like ...
10
votes
3answers
175 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, ...
2
votes
0answers
137 views

Is there any inbuilt Mathematica function that can be used as a steerable filter?

I need a steerable pyramid filter for images and volumes. Is there any built-in Mathematica function or package for that as there is in Matlab? Edit 1: Firstly, I didn't ask for an implementation of ...
2
votes
1answer
38 views

How to avoid margin when combining ListDensityPlot and an Image?

I have an image img1 and some data with a density plot plot1 to reflect the target position of the image. I tried to combine <...
5
votes
1answer
41 views

How to remove the undesired border of the GeoGraphics?

I have created an image of Europe as below:- ...
6
votes
1answer
59 views

How to ensure that MorphologicalGraph produces a planar graph?

MorphologicalGraph can produce a graph from an image. Such graphs should always be planar, but if the pixel structure has a certain unfortunate shape, then ...
10
votes
1answer
334 views

How to protrude a 2D image wrapped on a 3D surface

There are a few posts on this theme: How to make a 3D globe? How to render a 3D tubular graphics from a 2D image path How to extrude a 3D image from a binary 2D image However I can't quite piece ...
3
votes
3answers
167 views

Extracting image value along circle of an image

I want to extract the ImageValue (along yellow circle) of an given below image I try with the below code to find the ImageValue...
4
votes
1answer
54 views

Sort images by difference

I can use ImageDistance to get the Euclidean distance between two images. But, I have list of (~100) images, and I want to sort them such that the average ...
1
vote
0answers
43 views

How does the ImageExposureCombine function work? [closed]

Any ideas for how to find out how this function works? Combines differently exposed images of the same scene into a single image with overall good exposure. I'm writing a physics paper that ...
4
votes
1answer
212 views

Extract cells from image

How can I extract each cell (= patch that is not crossed by the contour) from an image such as I thought SelectComponents (e.g. ...