Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
9
votes
0answers
127 views
+100

Hello world for FunctionCompile with Images?

I'm looking for some good examples of FunctionCompile applied to image processing code since there doesn't seem to be anything on this in the documentation. So here's a first attempt at a hello world ...
0
votes
0answers
37 views

How to creat a high-quality graph image for MorphologicalGraph to convert to graphs (it can't detect some edges in mine)?

I'm using MorphologicalGraph to convert images to graph. This is my source image: Following this and this, I tried ...
0
votes
2answers
64 views

How to show/merge multiple Image3D[] graphics?

Suppose I have 2 (or more) Image3D graphics: redCubes = Image3D[RandomInteger[1, {3, 3, 3}], ColorFunction -> (If[# == 1, Red, Transparent] &)] ...
4
votes
4answers
138 views

How to separate n colors from image into n binary images?

I have some images in which I expect to have some red, green, blue, or yellow areas. Like this image: myImage = Now, I'd like to get 4 binary images, representing ...
5
votes
1answer
184 views

Why does ImageDeconvolve not restore this image?

The ImageDeconvolve documentation page has many examples where ImageDeconvolve restores blurred images almost perfectly. I ...
1
vote
0answers
51 views

Manipulating Images

I would like to get information from an Imagen. Specifically, I have this image of cells in a tissue (you can identify a cell because it is border by a lighter purple). What kind of Mathematica's ...
3
votes
2answers
65 views

adding bar legend of an morphological image (Atomic force microscopy image)

I want to analysis a topography of the following image. I want to add a bar legend in this image associated with the appropriate colour of the image. Following is the image: For your reference Here I ...
1
vote
1answer
77 views

ColorReplace with thresholds and connected components

I would like to replace the colors in this drawing (called img) with colors of my choice. (For simplicity, we can assume my desired colors are ...
3
votes
0answers
60 views

How to digitize a vector field?

Is there some way that I can digitize both the direction and the magnitude of a vector field accessible in JPEG format? To clarify what I mean, I want to have the numerical value of: 1)magnitude and 2)...
3
votes
1answer
99 views

Hiding a message in a photo using Mathematica

So, this is a problem that me and my friends are facing while doing a project for school. Our idea is the following. Given a certain photo we want to be able to hide a message behind it. Our approach ...
0
votes
1answer
104 views

Plotting a complete graph with a given image as vertices [closed]

I am trying to plot a complete graph using a png image for the vertices. I tried a "drag and drop" approach with VertexShape, but the software gets ...
0
votes
0answers
33 views

Erase parts of image or overlay with different color

Is there a way of erasing part of an image? I have been looking for a tool that would enable me to do this. Is there one? Here is a simple minimum working example. I make an image that has some ...
8
votes
1answer
197 views

Digitise curves from an existing plot image

I'm trying to digitalise the solid lines in the plot below and find the approach here doesn't work for my case. If the solid lines can be well highlighted into simpler format, I think this ...
1
vote
1answer
58 views

What is the default loss function used by the GradientBoostedTrees classifier?

I've used Classify[...] for a two class image classification problem which has yielded pretty good results. I let Mathematica select an algorithm for me and it picked a GBT model, everything looked ...
0
votes
1answer
58 views

Defining elements of matrix as a function of two variables (the position $(i,j)$ ) [closed]

I have the following array, which generated from grayscale image data,: $$ \left( \begin{array}{cccccccc} 162 & 162 & 162 & 161 & 162 & 157 & 163 & 161 \\ 162 & 162 &...
2
votes
2answers
95 views

Changing graphics coordinates to the image coordinate frame

The graphics libraries I'm used to using with images, all use image coordinate frames. That is, the origin is in the upper left hand corner. I'm relatively new to using Mathematica for image ...
1
vote
0answers
48 views

Problem using KarhunenLoeveDecomposition

I have a matrix called stochasticData.mat which size is 211302*50 and I need to perform the Karhunen-Loève decomposition on it to calculate the uncorrelated random variables. Note that stochasticData....
0
votes
1answer
64 views

Extracting intensity from density plot image given color bar

I have an image showing a density plot from a paper, as well as the corresponding color bar. I am trying to convert this back to a 2D array of intensities. Here's what I did, which works but seems to ...
1
vote
0answers
103 views

Opacity on Mac does not work

I am trying to run the following code, taken from https://reference.wolfram.com/language/ref/ContourPlot3D.html: ...
3
votes
2answers
154 views

Importing an image and getting the real size between circles

I have taken this picture from a scientific paper: The paper says that the size of picture is 92.3 microns. By importing the picture in Mathematica and right-clicking on it and using Get Coordinates, ...
1
vote
0answers
25 views

How to make eplilog text visible while exporting plot as pdf?

I am having this problem that if I add some epilog text in a plot by rotating it, then while I export the plot as pdf, the text becomes invisible. It works fine if I export it as jpeg or png. What ...
4
votes
2answers
208 views

Speed up posterize image function

I have a list of colours that I would like to "posterize" an image into. I am using the following code, which converts the hues to points in an hsb colour space, then uses the replace rule: <...
0
votes
0answers
51 views

Can you manipulate and colorize this image to show more detail than the original grayscale image?

I've run out of ideas. Nothing seems to bring out detail. It's a rather interesting image ... ...
5
votes
1answer
208 views

How to Extract (Magnetic) XYZ Data Points from Color (Airborne Magnetic Survey) Image and Legend

I've been trying to work my way through this by working through search results like: Data extraction from a picture of a graph Numeric data from a color map Extract bathymetry data from a map I can't ...
1
vote
1answer
72 views

How to align a network graph to an image?

An arbitrary example: Create a random image Image[RandomReal[{0, 1}, {10, 10}], ImageSize -> Medium] Define some points and a graph to align ...
1
vote
3answers
107 views

ImagePad up to AspectRatio

I cannot come up with idiomatic Mathematica code to solve this simple problem: take: image and desired aspect ratio get image dimensions upsize the dimensions to desired aspect ratio return...
9
votes
1answer
193 views

Digitizing a geometrical sensor

I want to quantify the flow from photos taken from a sensor such as this one: For a limited number of readings, I can use a plot digitization method. However, I need to do this many times for ...
2
votes
1answer
81 views

Obtaining contours of the image

I would like to obtain contours(outline) of the image (black and white thin curve version of the original image). Outline that would just look nice. First attempt I first try using ...
1
vote
0answers
43 views

Image Perspective Transformations

I'm trying to detect the license plate in these types of images which may be captured from various perspectives and lighting I've found it easiest to detect these two points corresponding to the ...
1
vote
1answer
104 views

map distortions in colour wheel as a function

It appears that Adobe have distorted their colour distribution screenshot of image from Adobe Color: evenly distributed colour wheel: How can I use mathematica to map the colours and plot the ...
5
votes
2answers
251 views

Fit ellipse to a arbitrary 2D image to extract centroid, orientation, major, minor axis

I am wondering if there is an easy way to fit an ellipse into an arbitrary 2D image quickly, so its centroid, orientation, major, and minor axis length can directly be extracted. In MATLAB, this can ...
5
votes
1answer
121 views

Counting dots/circles in an image

I'm testing to see if I can count/draw circles around dots I drew on a piece of paper, this research is for my thesis as I want to count the amount of pinholes in a composite laminate. I tried several ...
2
votes
0answers
74 views

Seeming hard-limit on image resolution?

I am trying to generate some very large images of the basins of attraction of a dynamical system. However, the resolution of the images seems to cap out at 10001 x 10001 pixels, and no arrangement of ...
1
vote
1answer
70 views

Detect and correct sheared squares in image

I have the image I want to detect the plots and warp them into perfect squares. My workflow so far: corners=ImageCorners[img,10]; This returns a lot of corners, ...
1
vote
1answer
58 views

ClassifierMeasurements returns strange errors

I am following the example listed on this page ResNet 50 to train a custom classifier and inspect the outcome with ClassifierMeasurements. My training set has 443 images from more than 30 classes. The ...
10
votes
2answers
314 views

How to fit a curve in a picture with an equation?

For a curve taken from a picture, is there any method to fit it with an equation if it appears to be some standard curve? For example, in the following picture, the curve looks like an ellipse or a ...
3
votes
1answer
60 views

How to crop image using Rectangle?

I use ImageBoundingBoxes to get the bounding boxes of objects in an image. I then want to crop out each object and I tried directly passing the Rectangle objects ...
3
votes
0answers
32 views

extract dynamic values from video frames [duplicate]

I have a video recording the time and temperature during the experiment. I would like to ask whether it is possible for MMA to extract the above two values (highlighted in red boxes) from the frames ...
4
votes
3answers
268 views

Remove some of the background noise to get clear microscopic image

I have a microscopic image (img1). I need to analyse it to be like the following image (img2): But how do I do it in Mathematica (I am using Mathematica 9)? I am not much familiar with the ...
2
votes
1answer
166 views

How to dilate binary image from outside-to-inside?

I have a binary image of a line, like this one: What I'd like to do is to dilate the line, but only towards the 'inside' of the line. That is, to add white pixels towards the center of the image, ...
4
votes
3answers
145 views

How to do a “random” image partition based on seeding points?

I'm new to image analysis with Mathematica, so far it looks it has great capabilities. I'm trying to do an image partition, similar to ImagePartition[], but "random". Suppose I have the ...
1
vote
3answers
148 views

How to make a 3D plot of light intensity for an image of a rectangular diffraction pattern?

A point source of light passing through a rectangular aperture causes a diffraction pattern that is a extension of a single single diffraction pattern (In that the pattern appears in 2 axes). The ...
4
votes
1answer
49 views

How to transform an image into a panning video?

NASA released a panorama image of Mars taken by the Perseverance Navcams 360-Degree Panorama Camera on February 22, 2021. I would like to have that image as an animated background for my Zoom meetings,...
2
votes
1answer
105 views

ImageData of an image section

How can I take the image data of the area around a max? ...
6
votes
1answer
187 views

How to add hexagon mosaic to a photo?

I want to put a hexagon mosaic on the area of the picture (the effect is similar to the figure below): ...
1
vote
3answers
87 views

Obtaining Pixel Values, from an image, while being able to zoom

I've built a small manipulate widget to extract a pixel value from an image whereever the mouse is clicked: ...
2
votes
1answer
81 views

Problem with tracing a marker in an image

My problem seems simple: I try to follow a marker across a number of images. All work fine, but when I update the marker from image to image, I observe a weird oscillatory behavior. I isolated the ...
2
votes
2answers
56 views

Number of similar pixels on a loop arround some pixel

I defined a command ŠtejTakePiksleOkol, that counts the number of pixels on a square loop arround some pixel, that have similar normalized RGB. If the square loop would go over the edge of the picture ...
0
votes
1answer
30 views

Derivatives not holding their definition when generated with a function

I'm trying to create a method to generate the function and the partial derivatives of an image. The problem is that, when executed, the derivatives won't hold their definitions. As I see it, dI1x, ...
1
vote
1answer
48 views

Speeding Up ImageApply / Binarize?

I have a 5Kx4K image. I'm wanting to binarize it. At the moment, I have a simple binarization function, but it's taking 6 seconds or 8 seconds to binarize. ...

1
2 3 4 5
30