# Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

1,513 questions
Filter by
Sorted by
Tagged with
160 views

### Computing density of particles and distances from microscopic images

I am analysing microscopic particles images of the kind shown below, and primarily I am interested in learning whether in Mathematica one can extract structural properties of the particles using the ...
71 views

### Removing white space from GraphicsRow and configure FrameLabel

I have this code for three graphs shown side by side. They have the same x,y ranges: ...
481 views

I have to calculate a 2-dimensional radially symmetric distribution from a single projection. I know that InverseRadon should actually do the job, but I get the ...
108 views

### Mathematica 12 HighlightImage doubles image dimensions ! Bug?

My scripts that use HighlightImage stopped working after upgrading to 12. I discovered that HighlightImage doubles the Dimensions of the image, see below. Bug ?? workaround ? I need the exact same ...
129 views

### Fast approach to do Summation in Compile[]?

My code does massive Summation and Matrix multiplication Compile[] has boosted it distinctly. But I read some literatures related to my program, It seems there are ...
64 views

### Extracting Blank Frames from Imported Video

Go easy on me; it's my first question. But please do let me know if I'm doing something wrong. When using VideoExtractFrames, I'm getting blank and black frames from my video. I get the same problem ...
70 views

### Recognizing letters in grid with TextRecognize

Here is the test image: You might recognize this as a Boggle board. I want to translate the image into a 4x4 array of letters. Not quite sure how to deal with rotated letters and ambiguous letters ...
102 views

### How to generate blobs of a given circularity?

I'm trying to generate some "imaginary" geographic regions (think of it as islands, for instance), by generating random blobs/blots. Currently, I'm using Szabloc's blotc[] function. However, ...
325 views

### Basic questions on matrix multiplication [duplicate]

I'd like to implemente a matrix multiplication among three matrices sized at 1*256, 256*256 and ...
110 views

### Merge vertexes that are close together in MorphologicalGraph

Suppose I have a image and I take its MorphologicalGraph by using the following code: ...
198 views

### Extract individual white parts of binarized image

Suppose we have an image, like so: and I managed to create its MorphologicalGraph by using ...
90 views

### How to remove indentation from an image border

I have the following image (fig 1) with the extracted points from the geomagic software (Please see the point list in the attached link). https://pastebin.com/K51N8Kfa I would like to know how I can ...
132 views

### Combine image with URL into one image

I have images from the internet and the corresponding URLs. I want to combine the image and the URL into one image. I don't want the URL to be placed over part of the image, but want the URL under the ...
38 views

### Acquiring images from Zwo ASI camera in Mathematica Home Edition v 11.2.0.0

I plan to use a ZWO ASI planetary camera (USB connection) for astronomical photography and would like to control the image acquisition using Mathematica. The issue is that although I have installed ...
60 views

### Counting distinct values over sliding windows in images & lists

I am trying to count the number of distinct colours in a $5\times5$ box, (a radius 2 filter) at all points over a quantized image. I cannot seem to get anything out of the following code except for a ...
155 views

### 3D ImageCooccurrence

I'd like to compute ImageCooccurence for an Image3D object. Mathematica advertises that "Now essentially any operation ...
193 views

### Structure factor of fourier transform of an image

In this article authors show crystal and liquid phase from two dimensional crystals by calculating structure factor (Fourier transform of 2D points). I have generated set of points in 2D that ...
614 views

### Rendering PNG images to spline curves

I found something interesting on this page (Generic contour smoothing with shading) that could help me improve my images. Unfortunately, they can only be used with graphics generated by the software ...
112 views

### Mathematica 12.1 trial version, very slow to evaluate a property in multiple pictures

I am a new mathematica user. I am using the following code to measure the internal rectangle width in some images. When I run mathematica for $1$ image, it takes a short time. Also, it works and it ...
469 views

### Detecting two (almost) vertical lines, and find the gap between them in (pxl)

I have no knowledge in mathematica, python, and other great softwares. I saw the following picture in a website; Where a software detects objects (like bus) and tells about its height or width or ...
132 views

### Video segmentation

Mathematica v12.1 introduced Video and various functions like VideoFrameMap and ...
205 views

### Find nearest crop of image within another image

ImageAlign[ref, i] works well when image i is fully contained within the reference image ref,...
248 views

### Counting the number of triangles inside $3-4-5-$triangle [Found in Arabic Math book: الرياضيات | هندسة الإحداثيات | الإحصاء]

Actually, I have no knowledge in Mathematica. I posted a mathematical problem in math.SE, but user170231 suggested me to post it here. He said it can be solved using "way of image processing". If ...
143 views

### Picking data from a list

For the purpose of my question, I cannot use random data. So the data are provided. ...
128 views

### Detecting line crossings on an image

I want to detect line crossings, especially in the supplied example images the crossings at edges of pavement for feature tracking. I specifically want to avoid tracking other kinds of features in the ...
159 views

### How to drag an overlay image over the reference image?

There are two images in this question. I want to overlay the img1 over img2 to see where they match and I want to do it manually:...
75 views

### saving edited Mathematica image at high resolution

I've created several graphs for a book I'm writing by using Mathematica commands to create an output image and then adding labels, etc. with Mathematica's drawing tools. My issue is that I can't seem ...
245 views

### Obtain subimages from a binary image with specified neighbourhood

Lets say I have this binary picture (an array with 1's and 0's): ...
62 views

### How to fit the image in the filling region?

Consider the following fillings: ...
66 views

### How to plot a greyscale image as a 3D plot for larger images?

I was following the post: Display grayscale image as 3d plot But the method failed for any image of substantial size (in my case when the data size is of order 3072x4096). Ram usage on my machine ...
78 views

### Is there a simple way to get the colour of a pixel?

PixelValue will extract the channel values at a certain pixel. It returns a vector of numbers, not a colour. Is there a simple way to extract the colour of a pixel ...
64 views

### Select image pixels of a certain colour

PixelValuePositions[image, colour, distance] returns the positions of pixels within a certain "distance" of a given colour. Is there an equivalent function that ...
110 views

### How to resize a series of images to a given total file size while keeping their relative size?

I have multiple image files, file1.jpeg, file2.png, file3.gif, ..., whose sizes are 984KB, 10MB, 5.1MB, .... I'd like to resize them so Each image file, when open, have the same aspect ratio as the ...
86 views

### Compute thickness of branches in a 2D image

I would like to ask for suggestions on how to obtain the thickness of the edges in a given input image Input image: I tried to follow the commands given in a similar question posted, How to ...
48 views

### Construct UI for image

I am trying to build the User interface, whereby when binarize is clicked, it gives its slider and its respective MeanIntensity and StandardDeviation. The same for EdgeDetect and MorpologicalBinarize. ...
466 views

### Find best region to put text onto image

Given an image upon which you want to inset text, the question arises: What is the best sub-region to place text? For example, given a background image I want to find the rectangle in the image (...
64 views

### Where does ImageCollage place each image?

How can I get the bounding box of each image of a collage made by ImageCollage? This would be useful, for example, to use the collage as an image map on a web site. I couldn't find a way to query ...
59 views

### Inlcude binarize methods in Manipulate

I would require the binarize methods in the Manipulate interface. Thanks ...
1k views

### Face Morphing with Mathematica

Can Mathematica be used to produce animations of face morphing (as described in wikipedia? This is a self-answered question because I felt there was a lack of resources on this topic, to share funny ...
214 views

### Find a continuous map between two sets of 2D points

Given two sets of points in 2D points1 and points2 inside a rectangle, I would like to find a continuous map ...
183 views

### Decoding Music in Staff Notation using ImageIdentify

I wrote this Code fragment Which is a E (quarter) note in Treble Clef. Instead Mathematica simply classified it as a "musical note" Can we do better?
91 views

### How to use ColorReplace with a mask

How can I apply a mask using drawing tools(or some other custom mask) to color replace part of an image? for example the image Masks returned by DominantColors (...
38 views

### Get Box Shape Coordinate from image [closed]

I would like to taget each box (rectangle) in this image in order to have the coordinate of each one and finally crop on each one. For example, I have 3 rectangles in the image, I would like to ...
75 views

### How to get center points of an images with different resolution

I have an images of particles and I want to get the center point coordinates for each particle. I can get the coordinates with other imaging tools, but since my calculations are in mathematica i want ...
58 views

### X,Y, Z Coordinate

I require the X, Y and Z coordinates separately, in 3 different columns. I have tried with, Table, Grid and Matrix. Please let me have an idea how to perform it. Thanks ...
257 views

### Extraction of statistics of cracks (craquelure in paintings)

The below image is of the pattern of cracks in the surface of Johannes Vermeer's Girl with a pearl earring, captured using a method called "grazing incidence illumination" (the light is shined at the ...
82 views

### Include the edge width of a hand-drawn graph to the respective imported morphological graph

I am still relatively new to Mathematica, but with the great help of this forum I managed to transform a doodled sketch into a graph, see attached file. I have used this code: ...
610 views

### Turn handdrawn doodles into graph

I have doodled sketches of graphs in JPG format (they roughly look like stick men, in particular the vertices are not shown - they should be where the lines meet) and want to convert them into proper ...