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.

0
votes
0answers
53 views

How to convert vector graph to equation?

I read post about convert bitmap to equation,but bitmap is not so accurate as vector graph, then I want to find a method for convert vector graph to equation. This is the examle pdf file.I already ...
1
vote
0answers
47 views

How does DominantColors work?

I'm trying to understand the algorithms behind DominantColors[]. Unfortunately Trace[] and ...
1
vote
1answer
123 views

Fitting a slanted edge using error function

I am trying to fit a function to my data that looks like the image below. This image is a slanted edge that is kept at an angle $a$ w.rt. the y-axis. For this, I am using the error function (Erf[]) in ...
1
vote
1answer
145 views

rotate image around fixed point

How can I painlessly rotate a tiff image by some small angle around a point with specific coordinates? The image shouldn't be altered otherwise, it can be padded with zeros if necessary, and then ...
1
vote
1answer
56 views

Ignoring text to compute regions in image?

Given this image (from Sculley et al "Hidden Technical Debt in Machine Learning Systems"), how can the relative areas of the boxes be computed? In particular, the text interferes with most ...
5
votes
3answers
156 views

How to make the boundaries thin and smooth of a binary image? [duplicate]

Consider a binary image img as How can I make the edges thin and smooth?
6
votes
2answers
125 views

determine number of fibers at junctions

I work on a structural analysis of SEM image of a gel. I extracted the center of fibers by binarizing ane seletonizing the picture in ImageJ (in red). Then I extracted the positions of junctions where ...
0
votes
0answers
19 views

mathematica how to avoid the previous evaluation grayed out, when editing [duplicate]

it happens sometimes that I have to test and compare how small changes in some image processing parameters affect the final image. The fact that - as soon as I start editing the line - Mathematica ...
0
votes
1answer
143 views

How to design a custom image filter for edge detection?

Consider a sample image img as If I apply a GradientFilter on it followed by a padding, ...
2
votes
1answer
61 views

DynamicImage with a Dynamic

This is probably a very simple thing, but I could not figure it out. I am trying to create a window were I can display an image while being able to zoom, pan and scroll while adjusting contrast and ...
0
votes
0answers
53 views

How to change the kernel size in a custom image filter?

consider a custom image filter as ...
1
vote
2answers
104 views

Try to find the number of points near the black color ؟

Given this RGB image I want to find the number of points that are, or almost, black ؟
1
vote
0answers
141 views

How do I use Discrete Wavelet Transform for feature extraction on MRI DICOM image? [closed]

As an example, I would like to extract different features from the following image: I could do this in 3D slicer but since I could code a bit in Mathematica (I just moved to Mathematica 11 from 9 ...
6
votes
2answers
150 views

Fit a circle to a region of an image

I would like to develop a routine that associates a size with images such as that below. My idea is to find the radius of the circle (centered at the origin) that contains (say) 95% of the total ...
7
votes
1answer
129 views

Mean RGB value of a locator region?

i am working at a color deconvolution using Ruifrok and Johnston's method (as described here). To get a custom stain, I need to realize a vector with mean RGB values of a region in a given image. So ...
1
vote
0answers
242 views

How to change image data (2D matrix) from cartesian to polar coordinate system? [duplicate]

I have a 2D matrix corresponding to the shown image in Cartesian coordinates. In image, the horizontal axis is x and vertical corresponds to y-axis. How to change this 2D matrix to polar coordinate ...
0
votes
0answers
59 views

Detection the coordinates of all points of a curve on an image file [duplicate]

I have a plot of a curve (the black curve without dashes) on an image file.jpg: http://s000.tinyupload.com/index.php?file_id=48857135704766357735 I'd like to detect the coordinates of all point of ...
1
vote
1answer
79 views

Removing outer concentric circle picked up by ComponentMeasurement

So I have performed EdgeDetect and ComponentMeasurements on my images and obtained a pretty good elliptical fit. However, the black shadow of the beads in the image is being picked up by ...
0
votes
1answer
52 views

Count overexposed pixels in image columns

I have large data sets of grayscale images of 1024*2048 pixels. What is a fast method to count the number of overexposed pixels in image columns? The following example shows what I did: ...
3
votes
4answers
264 views

How fast can I compare an array of images?

Consider an image(image) as Let's now split the image into several parts. ...
0
votes
0answers
30 views

Use a swap file / partition on Raspberry Pi?

Would Mathematica's performance and stability improve if I set up a swap file or partition on my Pi 3? I'm going to be trying out the Multi-view Reconstruction functionality in Mathematica 11, if ...
4
votes
1answer
160 views

Create 3D objects from 2D image and export as a 3D model

I want to create 3D objects from 2D image and export it as a "3ds" file (or "obj"). I tried: img=Import["https://i.imgur.com/orbbFG4.png"] ...
2
votes
1answer
145 views

Determine circle sizes in picture

I need to determine the size of the 16 circles. Therefore I tried to binarize the picture to get the 16 circles, but i failed. I used a combination of Binarize, EdgeDetect and FillingTransform. But ...
8
votes
5answers
1k views

How fast can I split an image?

Consider an image(img) as I have defined two functions for splitting and displaying as follows: ...
4
votes
2answers
565 views

How to add zero padding to an image?

Consider an image (img) as The dimension of the image is: {w, h} = ImageDimensions[img] {488, 275} I want to change the ...
0
votes
1answer
83 views

How can I count the red circles I drew? [duplicate]

I reached there the last step is to count the circles. Please help me.
0
votes
1answer
299 views

How can I count the black dots in an image? [closed]

I have put a lot of time trying to count the little black dots with Mathematica image processing tools, but I have not been able to make it get the right count. Please help me.
1
vote
1answer
105 views

3D interpolation to 'm x n' matrix

Let's consider an example: Case 1: ...
3
votes
0answers
117 views

Fourier image correlation is likely to be wrong [closed]

I have images of two identical ellipses, which differ by the orientation. I want to obtain the difference angle between them by means of phase corelation method (https://en.wikipedia.org/wiki/...
1
vote
0answers
53 views

Performance of ImageCorrelate with a masked kernel (via custom distance function)

Context For an image in-painting task (filling in missing regions in an image, see image below; missing region printed red) I'd like to try a template matching approach. The idea is to use parts of ...
4
votes
2answers
274 views

How can I implement a region splitting and merging technique for image segmentation?

Consider an image (img) as There are six different textures in the image and I want to segment them using region splitting and merging. The property that I wish to ...
0
votes
3answers
152 views

How can I change all pixel values of a portion of an image to a certain value?

Consider an image (img) as What is the best way to convert all the pixel values to say, 0.8? Edit 1 Let me explain my ...
0
votes
1answer
97 views

How to segment an image based on MeanEuclideanDistance?

Consider an image (img) as Now I have partitioned the image using the following command parts = ImagePartition[img, 32]; ...
1
vote
1answer
137 views

Eliminate the black color of the “W” so that it is equal to the “S” using Mathematica?

I have searched the answers for a long time to help me with this but I can not find it. I tried to do with drawing programs but it looks good. How can I leave the "w" blank, respecting its shadows or ...
8
votes
4answers
849 views

How to create a binary mask of an image

Consider an image (img) as I want to create a binary mask which will exactly cover the foreground. If I do the following ...
9
votes
3answers
527 views

Implementing Arnold's Cat Map

I'm trying to write a notebook that can take any square input image, and apply a cat map to it a specified number of times. I've written a pretty simple script that seems to work: ...
1
vote
1answer
71 views

ImagePartition -> arbitrary convolution -> ImageAssemble with variable offsets

I am currently trying to partition an image into several images with fixed size and no padding spanning the whole area of the original. Subsequently, I want to do an arbitrary operation on each image ...
2
votes
3answers
187 views

How to fit implicit function based on an image in mathematica?

I know how to make a plot given a function, but I don't know how to get implicit function based on an image. For example, I have the image shown below (thumbnail): Full size image import: ...
3
votes
2answers
162 views

How to calculate the distance that from the pixel to image edges

I have such image: It is a binary image, I mean the pixel value is 0 or 1, but now, I hope to replace every pixel value with ...
2
votes
1answer
44 views

Inverse ImagePartition with offset

when I call the function ImagePartition I get an image list from which I can reconstruct the image by calling ImageAssemble onto ...
2
votes
4answers
81 views

How to find elliptic strips from a binary mask?

Consider a binary mask as Image[DiskMatrix[All,{100,150}]]; Now I wish to have a strip like this: such that I can manipulate the inner radius, and the outer ...
4
votes
2answers
182 views

How to draw Feret diameters (CaliperLength and CaliperWidth) and calculate angle between them

I would need to extract the angle between Feret diameters (and represent them) for an image such as: Any hint?
0
votes
1answer
57 views

ImageAdd or ImageSubtract on interior / masked part of image

I'm making a little icon to be the default favicon in my website template. To do this I'm taking one of those dumb little globe network icons and merging it with the v11 Mathematica spikey icon. The ...
2
votes
2answers
96 views

Color ArrayPlot with custom colortable ~ ColorData or ColorRules

I have a map what I would like color according to predefined RGB colors. So first I make an array of the ImageData: Download the attached data source here: map, colors ...
8
votes
1answer
131 views

How to make a custom DynamicImage which support mouse wheel and show pixel value?

The built-in DynamicImage just click the plus sign or minus sign to rescale the image. I have to say click is a not very good operation. Could we make the custom <...
13
votes
2answers
434 views

Extracting data from analog screen photograph

I'm using an analog profilometer from the 1970s and need a way to digitize the data and the only way is through a photograph. I've searched but all I could find was how to extract data from computer ...
3
votes
0answers
97 views

Highlighting an image with texture segmentation

I'm trying to take an image of a pencil sketch (http://www.vangoghgallery.com/catalog/image/1442/Sower-with-Setting-Sun.jpg) and colorize the different segments based on the texture. So in this image, ...
1
vote
1answer
44 views

dynamicWebImage - apply filters on images

I really need some professional help! :) I am having some problem with styling things inside DynamicModule. In this case I would like to eg. apply filters to the images that I get after running my ...
0
votes
0answers
173 views

How to realize the contribution of each row in the Fourier Transform of an image?

Let me first show you what I have done so far. ...
3
votes
0answers
212 views

Accessing advanced ZXing settings for BarcodeRecognize

Usual algorithms for detecting the presence of a QR-code in an image seem to have trouble detecting a code when it is tilted (especially at 45°). This is dependent on the resolution as well. The ...