Questions tagged [image-processing]

Questions on the image processing capabilities implemented in Mathematica.

Filter by
Sorted by
Tagged with
4
votes
2answers
119 views

How to get ComponentMeasurements[] from colorized image?

I'm using a software to segment images. Long story short, the output given is an array of integers (range 0-255), which I show here colorized: I'm supposing that the software avoids representing two ...
5
votes
0answers
82 views

Getting the area of the gaps in this image of a spider web?

I'm trying to find a way to calculate the area of the gaps in a sample of spider web in a ring. The web strands are very thin and difficult to segment, since there appear to be breaks in the line ...
1
vote
1answer
83 views

Adjusting highlights, midtones and shadows in an image

I can adjust the highlights in an image with ...
0
votes
1answer
66 views

Extract ROIs - Machine learning - References

I want to try to extract ROIs from certain images using machine learning and neural networks , granted I know nothing about this field and it may not be the best way to do this, but the goal is to ...
0
votes
1answer
50 views

Extracting an array from an image [closed]

Consider the following array: array = Partition[Mod[Range[96^2], 250], 96]; We can make an image out of this. ...
1
vote
1answer
49 views

ImageAdd with specific position

Consider the following code : ...
5
votes
1answer
181 views

Noisy and vague shape recognition

Consider the following image: Imagine I have several images (let's say 40), that look like this one but with slightly different cloud shapes, pixel count intensities and distances between the clouds. ...
1
vote
0answers
31 views

Image processing channels in LAB space

I am trying to adjust the curves in LAB space as per screenshot of photoshop command below: I am using this method: ...
11
votes
1answer
308 views

Wolfram Neural Net Repository Questions

I am a developer in the machine learning team, and mostly involved with the neural net repository. One of the discussions with my group raised these question in my mind, and these might be stupid ...
10
votes
3answers
322 views

Color regions defined by many lines

Consider the following code: ...
-1
votes
2answers
101 views

Sampling a jpg image at a grid of points

I have a 1920x1440 jpg image. It has been binarized. I want to sample the values at an nxm grid of points say 50 points x 40 points. What is the most computationally efficient way to do this? Thanks.
2
votes
1answer
330 views

How to extract text and pictures from an image file

Let us consider the following image file My question is the following: Is there a way to use Mathematica in order to "read-scan" the image file and then obtain three new images, one ...
7
votes
3answers
246 views

Smoother boundaries between components of segmented image

I'd like to use boundaries between components of a segmented image to create a mesh for finite elements, as described in Mesh for Images for three materials and meshes with multiple regions from 2D ...
7
votes
2answers
500 views

How to calculate the areas of cells in an image with Mathematica?

Below is an image of cells (adapted from here, Figure 1): where the scale bar is $20 \mu m$. Is there any way to calculate the areas of cells with Mathematica?
0
votes
1answer
70 views

Partitioning Images containing sub images of slightly different dimension

I have a PDF file that contains 3 pages of microphotographs that are subdivided into subimages of several individual micrographs. For the first two pages the individual photomicrographs are arranged ...
3
votes
0answers
56 views

Displacing / warping an image using a pre-existing optical flow image

ImageDisplacements provides a way to calculate the displacements between two images (e.g for optical flow purposes) and return a two channel image containing the dx,...
10
votes
1answer
205 views

Animating Curl noise applied to an image

I'm trying to produce turbulent swirling effects in an image using Curl Noise. The idea is you start off with some random field (usually Perlin noise) and use the curl of this field to displace the ...
2
votes
0answers
58 views

family photo album,how to optimize its realization?

I am Beezy, the eldest daughter of the couple. I have a lot of photos on paper and I want to make a photo album for my parents, but the task is titanic. First I use a scanner, to scan the photos that ...
0
votes
0answers
39 views

How to map the outputs to different output lines?

I have the following code GraphIt[n, n2, IR, #] &/@ vanishpts where the function GraphIt print something, and returns a graph. I don't want my outputs to be ...
1
vote
1answer
90 views

robust method to find vertical lines in image

Consider the following images with vertical grid lines. They can be loaded in mathematica by the following code: ...
1
vote
0answers
34 views

Trim image-border connected white regions [closed]

I have this image: img = Import["https://i.stack.imgur.com/RtmAK.png"]: What is an elegant way to automatically trim the border-connected white regions ...
2
votes
0answers
71 views

Detect pentagon in image

Problem: Given a UK Energy Performance Certificate (EPC) image, detect the pentagons containing integers between 1 and 100. (these are isosceles right pentagons) Example EPC image 1: ...
14
votes
0answers
311 views

FunctionCompile examples for Computer Vision

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
40 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
67 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
150 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
191 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
54 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
67 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
80 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
64 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
105 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
39 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
210 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
61 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
61 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
97 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
49 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
80 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 ...
3
votes
1answer
169 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
158 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
28 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
212 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
52 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
221 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
75 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
110 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
199 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 ...

1
2 3 4 5
30