Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

1,216 questions
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 ...
47 views

How does DominantColors work?

I'm trying to understand the algorithms behind DominantColors[]. Unfortunately Trace[] and ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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, ...
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 ...
53 views

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

consider a custom image filter as ...
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 ؟
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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. ...
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 ...
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"] ...
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 ...
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: ...
565 views

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

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.
105 views

3D interpolation to 'm x n' matrix

Let's consider an example: Case 1: ...
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/...
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 ...
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 ...
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 ...
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]; ...
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 ...
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 ...
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: ...
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 ...
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: ...
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 ...
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 ...
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 ...
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?
57 views

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 ...
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 ...
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 <...
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 ...
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, ...
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 ...