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 tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

3
votes
3answers
171 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
57 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
48 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
225 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. ...
0
votes
0answers
62 views

Improve SEM sharpness image

Hello Mathematica experts :) I have some SEM images of the nano-particles. However, the technician can not get better results. With Mathematica image treatment, could we improve to get higher ...
12
votes
1answer
146 views

“Boundary” thickness in HighlightImage

Bug introduced in 11 or earlier and persisting through 11.3 CASE:4076121 I'm having a hard time to understand how I can use HighlightImage and only draw the ...
1
vote
1answer
75 views

Use slider to manipulate images?

Suppose that I have plotted many figures and have exported them as images. Now for the post-processing phase, I would like to import these figures and manipulate them in such a way that a slider ...
6
votes
3answers
104 views

How to find the boundary of a region from a dataset

I have a dataset which supposed to show some regions. For example ...
1
vote
0answers
76 views

Revert image fusion using discrete wavelet transform

How can I extract a hidden image using discrete wavelet transform? I have used the function ImageFusion from this site to hide an image inside another one. ...
5
votes
1answer
99 views

How to cluster a set of images?

I have a set of images (imgset) as Clearly, the classification list should be ...
3
votes
0answers
43 views

Always missing one component in Image Segmentation with SelectComponents-WatershedComponents-GradientFilter Method

I hope this is not a too specific issue and it is probably something very simple, but it is driving me insane. I am trying some image processing on microscopy images to perform cell isolation as ...
1
vote
1answer
57 views

Import two Gif files together and play them with just one button

I have two gif files and I want to import and play them at the same time with just one play button. The target is to compare them easily. Is there any way?
6
votes
1answer
181 views

Iconize a compressed image

I want to embed a compressed image in a notebook so that only an icon is visible (and not the whole image). The following procedure seems to work : ...
0
votes
1answer
121 views

Remove a specific color (black) within an image [closed]

I need the image to be totally blank, so the black must disappear
5
votes
0answers
109 views

How to efficiently apply PCA followed by SVD to extract the components of PCA?

I am working on segmenting a textured image using Gabor Filters. This is based on this paper. There exist a Matlab implementation of this as well. Earlier I managed to do up to this. With the help of ...
4
votes
2answers
356 views

Transform a black-and-white image into a list or a function

I met such an image in a paper: It represents an in-plane distribution of a light intensity, J=J(x,y). It is assumed that the white color intensity shows the light intensity. I would like to get this ...
4
votes
1answer
116 views
5
votes
1answer
96 views

Find centroids and average intensities of regions in an image

The image below shows an approximately triangular array of bright spots. The intensity falls off towards the edges (Gaussian decay). There are some defects (the elongated smudge and the sharper ...
5
votes
3answers
185 views

Performance of ImageApply

I would like to optimize this code fadeAndShine[old_, new_] := If[old == new, {1, 0.8, 0.2}, new]; ImageApply[fadeAndShine, {imageA, imageB}] Is it possible, and ...
4
votes
2answers
110 views

Count number of connected regions/meshes

I want to count number of connected region. For ex I have a region below which has 2 connected region. And also, How to check whether the function ...
1
vote
0answers
74 views

Contour of an splashing droplet

I have pictures of the evolution of a splashing droplet, and I would like to get the contour. It´s not difficult for early times (first figure) but I could not find the way for the later times. Any ...
1
vote
0answers
74 views

How to segment a textured image using Gabor Filters?

I am following a matlab implementation of texture segmentation using Gabor filters. My test image (img) is from Brodatz and as ...
10
votes
3answers
215 views

Measuring distances between image components

MorphologicalComponents can break an image into components. How can we measure the pairwise distance between these components efficiently? Performance is ...
0
votes
0answers
44 views

Normalize an image to a unit circle region [duplicate]

I've found that it is hard to imagine how to map the coordinates of image to a unit circle region in Mathematica. The transformation rule would follow ...
2
votes
1answer
204 views

How to count the number of eggshells in the image

My goal for this is to simply count the number of eggshells in the image. Using color negate only leads to this ...
0
votes
0answers
117 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 build-in function in OpenCV cv2.compareHist for distance measure like Chi-sqr, Correlation, ...
1
vote
2answers
70 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: ...
4
votes
2answers
135 views

Quality of ImageRestyle

There is an application of image restyle here. It is an example in following: But if I just use ImageRestyle of Mathematica <...
2
votes
3answers
193 views

Masking an image with an annulus

I have an image where I would like to do 2 things: a) Put a disk of radius r on an specific $\{x,y\}$ position on the image such as the result is the original image within the disk and black color ...
6
votes
1answer
328 views

FindFaces in Mathematica 11.3

I just upgraded to Mathematica 11.3. but now my FindFaces instructions do not work anymore. I guess they changed the syntax in 11.3. Here is the original code: <...
41
votes
1answer
6k 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?
2
votes
0answers
80 views

Why can't ImageTransformation be parallelized?

I have a rather complicated code for an ImageTransformation, which would benefit from some acceleration. Since every pixel is independend of every other, I tried Parallelize, which, in a simplified ...
2
votes
0answers
44 views

Unable to create ClassifierMeasurements for NetGraph

I am trying to check the accuracy of a neural network by using ClassifierMeasurements. I take the MNIST as example:- Code for setting ...
6
votes
3answers
146 views

How to know the layout about these points

I have such points pts=Uncompress[FromCharacterCode[ Flatten[ImageData[Import["http://i.stack.imgur.com/hkAK8.png"],"Byte"]]]]; ...
0
votes
0answers
129 views

How to perform local Fourier Transform of an image?

Consider an image (img) as A nice explanation of the Fourier transform of an image can be found here. However, I want to perform the Fourier transform locally. For ...
3
votes
0answers
64 views

How to flatten a scanned image which is from scanner [duplicate]

I have a image from scanner: You can see that the right side of this paper is very flat, but it's curved in the left side. I think maybe I can detect the edge of this paper and then build some model ...
3
votes
1answer
117 views

Single Neuron Dream Example (from Markus van Almsick's Presentation WTC 2017)

I'm teaching myself about Mathematica 11.3 Neural Net capabilities, and I can't get a demonstrably previously working example to work. I've been trying for quite a while without success. In Martin ...
2
votes
0answers
47 views

How to get ImageTransformation to not compute the function at *every* pixel

I am using ImageTransformation with a slow function. Is there a way to get ImageTransformation to compute the function at only a ...
2
votes
1answer
103 views

Smoothing EdgeDetect - image processing

I have to make a program that analyzes the image of saw tooth and later find the function that can describe it (or just part of it). Now I have a problem with smoothing the edges detected with ...
3
votes
0answers
117 views

Image Segmentation: (Efficient Graph-Based)

This question is two-fold; First, it is about how to get the speed efficiency this algorithm should provide in Mathematica. In addition, it has a small question about the algorithm (Efficient Graph-...
0
votes
0answers
57 views

Extract pixel value and positions to a txt

I have an image, for example img = Import["https://i.stack.imgur.com/fPZM7.jpg"] I would like to save in a text file the pixel positions and their values. At ...
2
votes
1answer
127 views

Signed distance function from grayscale image

I have a grayscale image and I would like to convert it to a signed distance function. Right now I'm using DistanceTransform but I do not like the result. ...
2
votes
1answer
82 views

Error using accuracy and ConfusionMatrixPlot of ClassifierMeasurements

EDIT: Here is the complete code that i have used: ...
3
votes
0answers
142 views

Image Generator with a Neural Network (CIFAR-10)

As some of you may know, CIFAR-10 is a data base which has 60,000 images (which are 32x32 in size) of 10 different categories (airplane, dog, cat, frog, deer, bird, horse, ship, automobile and truck). ...
5
votes
4answers
252 views

How to select the mark items from the image

I have such image I want to select all mark items from it. Of course, I can use such code to implement it DeleteSmallComponents[ColorNegate[Binarize[img]], 700] ...
3
votes
0answers
82 views

How to perform unsupervised texture classification?

Consider a texture mixture (img) from Brodatz. I want to classify the five different texture patterns and segment the corresponding regions. Following this, I ...
11
votes
1answer
152 views

How to make Texture unblurred?

This post is related to this post, But somewhat different. Since Wizard focus on alpha channel, and didn't got an answer. So I made this post. My system is Windows 10, and Mathematica 11.2 If I run ...
0
votes
0answers
30 views

Image under complex transformation [duplicate]

I need a function in mathematica doing the following: I have an jpeg image with $x \times y$ pixels which should be interpreted as lying centered in the complex plane. Meaning that $x,y$ are odd ...
2
votes
2answers
215 views

How can I extract trace points from an oscilloscope image?

I have the following oscilloscope image: I would like to extract the points of the yellow curve together with the correct values. Do you know how I could do it? Extracting the yellow curve from the ...
5
votes
4answers
950 views

How to double (or triple) each element of equation?

x^2/3+y^2/9==1 (0.5x)^2/3+(0.5*y)^2/9==1 Looks at above two equation,I multiply 0.5 to each element of second equation,which means when plotting, each point ...