Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
4
votes
1answer
118 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 ...
0
votes
1answer
172 views

Creating a numerical table of values and using an interpolation of them to transform pixels in an image by the ImageTransformation command

I am trying to carry out point "Implementing Map" on this paper Interstellar wormholes however I am using my own equations not those given (only the same method). I have generated a list of ...
4
votes
1answer
92 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 ...
1
vote
0answers
45 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 ...
18
votes
2answers
1k views

Monospaced fonts are not monospaced

Bug introduced in 8 or earlier and persisting through 11.2.0 I'm using Linux-x86-64 as operating system. Can someone explain this behaviour and maybe give a hint how to resolve it? Here are two lines ...
1
vote
1answer
49 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 ...
0
votes
0answers
50 views

Image merge and white balance

I have three images of red, green, and blue channels of white particles. I wonder if anyone can help me to merge them and balance the white so that the particles in the merged image looks white. ...
3
votes
1answer
70 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, ...
5
votes
2answers
236 views

Basic questions on matrix multiplication

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

How to create a matrix with specific element subscripts and input subscripts into function as arguments

I'd like to create a matrix with specific elements subscripts. Matrix is like below. This matrix is sized at M*M and subscripts are indexed by ...
4
votes
1answer
88 views

Merge vertexes that are close together in MorphologicalGraph

Suppose I have a image and I take its MorphologicalGraph by using the following code: ...
5
votes
2answers
155 views

Extract individual white parts of binarized image

Suppose we have an image, like so: and I managed to create its MorphologicalGraph by using ...
0
votes
1answer
72 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 ...
1
vote
2answers
45 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 ...
5
votes
1answer
134 views

3D ImageCooccurrence

I'd like to compute ImageCooccurence for an Image3D object. Mathematica advertises that "Now essentially any operation ...
1
vote
0answers
21 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 ...
8
votes
2answers
210 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 ...
2
votes
2answers
47 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 ...
3
votes
0answers
57 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 ...
8
votes
1answer
447 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 ...
12
votes
2answers
359 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 ...
2
votes
0answers
72 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 ...
0
votes
0answers
55 views

$1)$ Combining codes. $2)$ Editing them. $3)$ Evaluating the outputs

I asked a question here. kglr answer was GOOD because that measurement is what I meant exactly. Due to my knowledge in mathematica (I am a $2$-days user), I have some problems (I believe that users ...
3
votes
2answers
85 views

Video segmentation

Mathematica v12.1 introduced Video and various functions like VideoFrameMap and ...
1
vote
3answers
2k views

Projection of curve 3D (x,y,z) on the x-y plane

I have a following systeme : \begin{equation} \left\{ \begin{array}{rcr} (\beta+\frac{1}{2}\delta^{2})\nu_{1}(u)-\delta\nu_{2}(u)+\nu_{3}(u)& = &0\\ (\beta+\frac{1}{2}\delta^{2})\...
4
votes
1answer
148 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, ...
6
votes
1answer
141 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?
2
votes
0answers
54 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,...
6
votes
2answers
2k views

Neural network: Line detection in Image

I am playing around with Mathematica's new Neural Network toolbox and am trying to teach a network to detect lines in quite noisy images. An example Input image would look like the following: The ...
3
votes
1answer
94 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 ...
50
votes
2answers
7k views

Detecting grid lines in a raster image

Motivation: Last October 7 there was a presidential election in Venezuela. Although the opposition saw an unprecedented increase in its votes, the government votes increased even more resulting in the ...
0
votes
1answer
48 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:...
2
votes
0answers
63 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 ...
15
votes
1answer
9k views

How to make a spiroglyphic?

Some (older) members of this group might remember playing vinyl LP records. Recently, at the Abbey Road studio there was a spiroglyphics coloring book for sale. It looks like a nice programming ...
1
vote
2answers
60 views

How to change color of DistanceTransform image?

I want to overlay a set of points onto a distance transform of them. But, I don't really like the black default color of the distance transform. Is there a way to change this? Given the points ...
5
votes
1answer
355 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). ...
0
votes
1answer
59 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 ...
5
votes
3answers
196 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): ...
18
votes
4answers
381 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 (...
5
votes
1answer
944 views

How to put a photo in a money bill?

Me and some friends want to make a present for another friend and we want to put pictures of each of us, e.g., me into a, e.g., one hundert dollar bill (replacing Benjamin Franklin and adequate color ...
3
votes
0answers
46 views

How to fit the image in the filling region?

Consider the following fillings: ...
0
votes
1answer
37 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 ...
2
votes
1answer
64 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 ...
2
votes
0answers
43 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 ...
2
votes
0answers
70 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 ...
10
votes
3answers
1k views

Creating a foggy image

I want to create foggy images like this one (produced with Adobe Photoshop): Not at least familiar with Mathematica's Image processing capabilities, the only thing ...
5
votes
1answer
324 views

Translate Image with respect to its centroid

To apply DistanceTransform for shape recognition, I want to center all images in a fixed point {cx,cy}. I mean each image's centroid should be ...
0
votes
0answers
36 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. ...
0
votes
2answers
53 views

Inlcude binarize methods in Manipulate

I would require the binarize methods in the Manipulate interface. Thanks ...
4
votes
2answers
52 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 (...

1
2 3 4 5
28