Questions on the image processing capabilities implemented in Mathematica.
2
votes
2answers
153 views
How can I import images from a Microsoft SQLServer database?
I have a table with binary data (images) in Microsoft SQlServer. I want to import that data and convert it into Image format. I wrote the following code, but it's ...
2
votes
3answers
128 views
Using ImageTransformation[] with a lookup table
I need to transform images by ImageTransformation in a time critical application. Therefore I precalculate a lookup table lut of ...
0
votes
1answer
79 views
TextRecognize with crosses, circles and spaces results into oddities, why?
I am investigating this answer here about detecting crosses and circles with TextRecognize. I tried to solve this problem here by directly using the builtin command TextRecognize but it does not work ...
24
votes
1answer
408 views
Finding areas of beings in microscopic image
I've got lots of images of diatoms. I need to get a list of their equivalent radii.
It's not crucial to get them all, as long as those missed don't mess with the radius distribution (as would ...
12
votes
6answers
529 views
How to find major color in a picture?
I want to find the major color (the color which appears most often) in a picture and do some analysis later.
For example, if I have this picture:
What I want to do is find out that gray, red, ...
0
votes
1answer
48 views
Outputting a set of graphics 3D objects with positions defined by one array and colors by another? [duplicate]
I have a set of 2- or 3-space coordinates in an array, $(v_1,...,v_N)$, and an array of RGB color values (outputs from ImageValue[]) for each coordinate, $(c_1,...,c_N)$. How can I output a ...
3
votes
1answer
216 views
Detection of horizontal lines in an image
Ok I'm trying to detect horizontal lines in an image. But the problem is that the line is quite obscure. So I'm not sure if it is even possible to extract that. I tried many different filters, but ...
5
votes
4answers
263 views
How can I return the color at a coordinate in an image?
I have an imported and cropped image:
TestPicture = Import["filepath.jpg"];
TestPictureCropped = ImageCrop[TestPicture, Min[ImageDimensions[TestPicture]]];
How ...
2
votes
1answer
42 views
How do I access the binary matrix underlying an EdgeDetect output?
Applying EdgeDetect to an image generates a black and white edge-detected image, which I suspect corresponds to an underlying binary matrix. How can I access this ...
5
votes
4answers
133 views
How do I overlay corresponding values over each frame of an animation?
I recorded a phenomenon using video capturing (phen.avi, imported into Mathematica) and simultaneous measurement of some electrical properties of that phenomenon (a ...
1
vote
2answers
80 views
Image processing - How can I apply an operation to several images at once?
I imported pictures into Mathematica, and used names for them that follow the easy scheme "name" string joined with an integer, ranging from 14 to 20. Printing these images on screen works nicely:
...
2
votes
0answers
90 views
looking for a generalised Hough Transform function or a least a function to locate circles
I am looking for a generalised Hough Transform function or a least a function to locate circles (position of center and radius) in a image. There is the standard Hough line search function ...
0
votes
0answers
21 views
How to use an arbitrary closed region to extract an image region of interest [duplicate]
I am working on images and I need to be able to extract into a list all the image points that fall within a closed region, such as gotten from using "get coordinates". I can extract the points from ...
0
votes
1answer
122 views
How can I find lines of a certain angle(s)?
ImageLines implements the Hough transform, but how do I search for only lines within some threshold of a certain angle(s)?
5
votes
5answers
312 views
Get Coordinates in Image Processing
I'm new to Mathematica. I'm very impressed about it's abilities. It's very easy to achieve complex tasks. But I fail the simple ones.
How can I get coordinates in image processing?
I'd like to ...
9
votes
3answers
178 views
Rotate a grid, made up of lines, so that it aligns with the xy axes
While working on an answer for another problem I hit upon one of my own.
I took the image given in that question and cleaned it up so that I could detect the grid lines:
...
17
votes
3answers
686 views
How to detect crosses and circles in 60x60 raster images?
I have hand-written 60 pixel times 60 pixel squares. I need to detect whether they are empty, x or circle. TextRecognize function fails. Is there some other function to process this kind of raster ...
20
votes
3answers
647 views
How to find the center of a circular pattern?
I am writing an algorithm that finds the center of 500 x 500 pixels images coming from a live feed from a camera at 50 Hz. So it has to be quick! The images are images of an optical field which looks ...
0
votes
2answers
120 views
Find white regions in image
At the white regions of this image I want to add a few random arrows.
I would like to realize two different of adding the random arrows:
The arrows may not leave the white region
The arrows have to ...
7
votes
3answers
387 views
Composing an image with a plot
I'm trying to illustrate the solutions to a textbook problem dealing with quadratic functions.
This will involve plotting a quadratic and overlaying the plot and the image.
Here is the textbook ...
2
votes
1answer
87 views
Round image corners [duplicate]
I just read StackExchange blog It’s OK to Ask and Answer Your Own Questions which even encourages it and decided to ask about a problem I now know how to solve. But I found an elegant answer only ...
2
votes
4answers
121 views
Find components which have intersections with designated lines
I have an image with several disconnected components, and I want to find all the components which have intersections with some designated lines which I generated previously.
The image:
And the line ...
6
votes
2answers
148 views
Applying a transformation rule on an Image
I haven't been able to figure out why the following doesn't work:
...
8
votes
1answer
238 views
Search the neighborhood area along a line in an image
I am trying to search for the black areas along a line (the horizontal line shown below). Though it is straight in this picture, it could be of irregular shape in other cases. It seems that the ...
9
votes
3answers
308 views
Extract connected components from PNG image file and write to individual PNG files
Given the PNG image below with the three leaves in it, I'd like to extract each individual leaf and write it to its own PNG file, using Mathematica 9. Note that in the original image, the box bounding ...
0
votes
1answer
117 views
Automatically shrink stretched images back to their original dimensions
We all sometimes find images on the web that are carelessly stretched to larger dimensions than original, which results in nothing but a reduction of the detail / dimensions ratio.
See Original vs ...
5
votes
3answers
256 views
Parameters for the CIE XYZ Color Space in Mathematica
In Mathematica, producing a color based on its RGB parameters is easy; one can use (for example)
...
5
votes
1answer
77 views
Scaling an image with “Drawing Tools” primitives on it
Imagine I doodle with the "Drawing tools" pen, or place lines on an image after importing it. Now say I want to scale this image by some constant factor $C$ while maintaining the same aspect ratio. ...
2
votes
2answers
146 views
Introduction of bias during brightness and contrast manipulation of an image
Quoting from Nature magazine's "Image integrity" guidelines:
Processing (such as changing brightness and contrast) is appropriate
only when it is applied equally across the entire image and is ...
6
votes
1answer
116 views
Digital Elevation Maps (DEM) are Warped yet ReliefPlot renders as a rectangle - how do i join?
I downloaded several USGS Digital Elevation Maps (DEM files) corresponding to 12 adjacent areas. Each file Imports[] into Mathematica and I can render the individual ...
1
vote
0answers
114 views
Exporting images leaves syntax artifacts [closed]
I'm exporting Images (using .Net MathLink) and finding syntax artifacts in:
Images:
RTF:
PDF:
I've tried a couple of things such as ...
0
votes
0answers
72 views
How to get Contours/maxima for an image in a useful form [closed]
I have some images in which I would like to find the locations of various maxima, plus the contour lines at a level e.g., 50% of that maximum intensity.
As a first step, I did a FourierDCT on the ...
5
votes
1answer
255 views
How do I put an image on the complex plane?
I watched this video and became interested in transforming an image. But I have no good idea on how to embed an image in the complex plane using Mathematica.
I have a method that seems to work, but ...
0
votes
0answers
104 views
Finding Peaks in an Image using Fourier — Problems with Derivatives
Rest of OP is below, but I am editing to add that the real problem seems to be in the way my functions are being defined. Sorry, but the one reply below is not clear enough to help here.
My function ...
12
votes
2answers
581 views
How can I detect a rectangular region of interest in a picture?
Here is a downsampled input image I converted to greyscale.
To select the rectangular region of interest we first preform preprocessing:
...
1
vote
0answers
124 views
Weird resampling when I try to export an Image
Mathematica language newbie here. I wrote the following code to quantize an image:
...
18
votes
5answers
586 views
Voronoi diagrams for generators other than points
Any suggestions how to determine Voronoi diagram for sites other than points, as e.g. in the picture below? Input is a raster image.
9
votes
1answer
158 views
Precise cropping with ImageCrop
The built-in ImageCrop function "effectively removes borders from image whose pixel value distribution is almost uniform" (emphasis mine). I need an efficient ...
1
vote
1answer
154 views
Extract data from plots in papers including error bars
I would like to know how to extract data from plots in a paper and, also, how to do that in a way that include error bars. I know there are specific softwares to do that, e.g. Plot Digitizer, which ...
1
vote
0answers
73 views
Why does animating images overlayed with graphics primitives take much longer than animating either individually?
So I start by making a list of images with
images = Image[ArrayPlot[Import[ (* filenames *) ]]]
Then I run some complicated code that extracts the coordinates ...
0
votes
0answers
74 views
Binarize a byte-formatted image
I have an image that I've imported as type "Byte" (I need to work with pixel values in this format). Let's just say the image is
...
0
votes
2answers
123 views
Number of edges to each polygon of a graph constructed from an image
I have an image which looks like
from How to convert an image to a graph and get the positions of the edges?
which by using MorphologicalGraph becomes a graph ...
33
votes
3answers
807 views
Image processing: Floor plan - detecting rooms' borders (area) and room names' texts
Here is a simple building floor plan. I would like to derive the rooms as (rectangular) components and the names of the rooms. This is very common representation of building floor plans.
The ...
0
votes
1answer
105 views
How does DistanceFunction work with images in ClusteringComponents?
Does anyone know the syntax to DistanceFunction? I am trying to define my own function to use with ClusteringComponents; e.g.,
...
3
votes
1answer
153 views
Filter bright dots from the gradient of the image
I am wondering to how to filter bright dots from background noise. I have used gradient filter in mathematica but it doesnt help, is anyway I can plot Intensity versus background noise with threshold ...
3
votes
2answers
120 views
How to remove border points from InputForm?
I have this code, and it generates the below ListStreamPlot. The second graph is the ListStreamPlot overlaid with the points ...
4
votes
1answer
204 views
How can I find a particular character in an image that has many similar Chinese characters? [duplicate]
The Chinese characters "竟" and "竞" are very similar in their appearance. I am trying to find "竟" in the following picture.
I tried use TextRecognize but it ...
12
votes
1answer
340 views
How to extract metadata from an image of a business card?
I'm trying to digitize some documents, and I came across a very cool app called camscanner app which performs parallax transform and ocr very nicely, now I'm implementing it in mathematica...
Given ...
12
votes
2answers
439 views
How to remove constant background from an image?
I'm not sure how to remove the paper background from this logo with v9.
This is really not the same as this question, but I think similar methods apply.
1
vote
2answers
135 views
How to find Image Size of a control object?
I want to find the ImageSize or at least dimensions of any control object irrespective of it being an image or an any other control such as ...


