Tagged Questions

Tag for questions about bitmapped graphics, particularly those using the Image function.

learn more… | top users | synonyms

3
votes
1answer
151 views

Exporting large png results in completely black image

When trying to export an Image as PNG the resulting file is a completely black image. This happens only for certain images I have not been able to determine exactly ...
3
votes
3answers
210 views

Is there a fast method of generating a Standard Deviation image from a frame stack?

Imagine I have a stack of image frames, $(f_1, ..., f_N) \in F$, where each $f_i$ has the same set of $(x,y)$ dimensions. Using these frames, I'd like to create an image where each pixel in the image ...
1
vote
1answer
328 views

Problem with Fourier and InverseFourier function

I have the following code Image[img, ImageSize -> 300] data = ImageData[img]; fdct = Fourier[data] tdata = InverseFourier[fdct]; Image[tdata] but it seems to ...
1
vote
3answers
191 views

Defining a polygon by clicking on an image [duplicate]

Imagine I have some image, $I$, and I'd like to define a polygon by sequentially clicking on the image to define vertices $(v_1, ...) \in V$, where vertices $v_i$ and $v_j$ share an edge if $j = ...
-5
votes
1answer
2k views

Determine the 2D-Fourier transform of an Image

I am new to Mathematica and using Version 8.0. I want to calculate the 2D-Fourier Transform of a digital image and see its Magnitude and Phase Spectrum, and reconstruct it.
2
votes
2answers
236 views

Intersection & Complement operations for lists of Morphological Components?

I have an array of $M$ sets of morphological components corresponding to the same image, however computed in different ways. For example, we might have: ...
1
vote
1answer
250 views

Selecting morphological components, of a certain size, centered on points of interest in an image

I have a set of points in an image, for example: ...
16
votes
1answer
804 views

Slow import of multigigabyte TIF image stacks

Update 6: After contacting Wolfram Technical Support, I was advised that the frame-to-frame import timing variability can be eliminated by reading in the frame stack from frame to frame with the ...
1
vote
2answers
204 views

Why is Text in an Image cut off?

I want to create a long, skinny Image containing only text. This makes a square image of the default size. ...
5
votes
2answers
331 views

Colorize and the Four-Color Theorem

We can write: MorphologicalComponents[image] // Colorize To assign a random set of colors to each component in some image. The example used for reference by ...
1
vote
0answers
86 views

Using Dynamic to import the chronologically newest file in a directory [duplicate]

Imagine that I have a device continually and sequentially saving files to a specified directory on a Windows machine (such as [E:\ExampleDir]). Call this device a camera with some proprietary drivers ...
2
votes
2answers
171 views

Lossless TIFF or PNG export

I'd like to export an output from MatrixPlot[], however, the output file size seems to depend on my specification of the ImageSize -> {..., ...}. How might I export a TIFF with all of the data in the ...
1
vote
1answer
81 views

Make the linked images show well?

Cell[TextData[{ "(16) ", ButtonBox["[images]", BaseStyle->"Hyperlink", ButtonData->{"http://i.stack.imgur.com/gHWby.png", None}]}], "Text"] After click ...
1
vote
1answer
178 views

Plot image function together maintaining compatibility between their coordinate systems?

Is it possible to plot an image, i.e., draw it's pixels against usual coordinates? My goal is to plot my image and my function in the same coordinates. Update I drew an image of size ...
2
votes
2answers
411 views

How can I put an image on a surface [duplicate]

I want to paste an image on the surface of a 3D plot. For example consider this image which I want to paste on the surface of this sphere ...
0
votes
1answer
252 views

Reverse after ImageData? [duplicate]

Why should we do a Reverse on the image data after an ImageTake ? For example: ...
1
vote
1answer
129 views

How to copy an image given as a GraphicsBox expression to the clipboard?

I have a GraphicsBox expression encoding an image. I need to copy this image to the clipboard so that it can be inserted in a Microsoft Word document. When I invoke ...
5
votes
1answer
210 views

How to convert an image to a compressed string representation equivalent to one copied to clipboard by `CopyToClipboard[image]`?

In my recent question I asked How to embed an image into a string? The suggested solution was ...
1
vote
1answer
125 views

How can I make images in the cell auto-adjust to some fixed-size

There is one auto-adjust item in the right-click menu of image in cell. And other related items are actual size and ...
5
votes
3answers
330 views

Getting RGBA data from an image

What is going on with returned data in the following examples? It appears ImageData returns different types depending on the what data is passed into ...
0
votes
0answers
151 views

Behavior of copy and paste with different image formats

Ok, let's say I create a 1x1 pixel image. i = Image[{{0}}, "Byte"]; Now I Export["image.png", i] the image and import it into ...
1
vote
1answer
138 views

How to get path and file name of a pasted image?

Say in Documentation Center -> ImageData -> EXAMPLES -> Basic Examples you find an image of a planetary body (Mars?). Can one obtain the file source for this image wich is copied into a Mathematica ...
24
votes
7answers
2k views

Embed Code Into Image

I often export images(plots, matrix, arrays, etc..) from mathematica which I end up putting in word documents or uploading to the web. The problem is that I often lose the original code and I am left ...
20
votes
4answers
2k views

How can I detect an ellipse in a photo?

I tried to detect the rim of the following cup as an ellipse. I've tried the solutions given in How to find circular objects in an image? to detect the ellipse, but the detection result was not ...
13
votes
2answers
408 views

Sharp background image in plot

How do I get rid of blurry transitions between pixels of the background image below. It's the fault of Texture[], previously discussed in this answer. I haven't ...
3
votes
1answer
151 views

Resampling when using image as Texture

How to get sharp pixel boundaries with Texture? I'd like to have only black/white in the example below, no gray. ...
2
votes
2answers
638 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 ...
3
votes
1answer
773 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
462 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 ...
7
votes
3answers
437 views

Combining Image3D and Graphics3D

I want to combine an Image3D and a Graphics3D using Show. Here is the code: ...
9
votes
3answers
2k 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 ...
3
votes
1answer
136 views

NetLink Exporting Images doesn't work (Unknown string escape)

Exporting Image files (intermittently) doesn't work: I get messages back indicating the error is to do with escaping characters: ...
5
votes
1answer
128 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
266 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 ...
4
votes
2answers
252 views

Mathematica averaging a big list of large images

I have a list of several hundred images, and I want to average the list to get a single image. Each image is 12bit TIFF with 2048*2048 pixels, and I am using the following to do the job: ...
11
votes
2answers
228 views

SaveDefinitions->True changes the displayed image

I have a Manipulate[ ] that displays an image with a superimposed Locator object. It works fine when I have ...
5
votes
2answers
123 views

Problem with Raster and custom ColorTable

Context Let me define two colour tables: (which come from brewer and xmedcom respectively) ...
3
votes
2answers
201 views

Using a given colour table with Image?

Context I would like to represent large images with a given colour table. Now, if I use Image ...
15
votes
2answers
2k 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: ...
26
votes
5answers
1k 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.
6
votes
1answer
120 views

How can I keep a plot's filled area from obstructing other lines when exported as EPS?

I am plotting several functions, some of which have fillings. After I combine all the functions together on a plot and export the plot to an EPS file, the fillings obstruct other lines. Exported PDF ...
0
votes
0answers
99 views

How do I get a plot with a certain size? [duplicate]

I am currently creating a poster for a conference in Scribus. I have a given space on the poster for a plot that I want to create with Mathematica. I don't want to scale in in Scribus, as this would ...
13
votes
1answer
291 views

High memory use while exporting a BMP

Something mysterious is going on when exporting images. I'm using Mathematica 9.0.1 on Windows 7 (64 bit), and find that the memory use is excessive when exporting to a bmp. But it doesn't happen ...
11
votes
1answer
309 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 ...
6
votes
1answer
182 views

Estimate Imagesize of any given Particular Control object?

I make different controls(InputFields,Text,panel, etc) in my code for which the corresponding code is below. ...
5
votes
1answer
494 views

Volumetric analysis from topological maps

I want to calculate the volume of fill required to level an area about the size of three foodball fields. The Department of Public Works in my city can provide me with topo data for the area. Their ...
3
votes
1answer
275 views

Filter bright dots from the gradient of the image

I am wondering how to filter out bright dots in the picture, which are caused by background noise. I have used gradient filter in mathematica but it doesn't help. Is there anyway, that I can plot ...
4
votes
3answers
556 views

How to align dynamic graphics and an image within an Overlay?

I have dynamic graphics over an image but they won't line up, what am I doing wrong? ...
15
votes
1answer
738 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 ...
3
votes
2answers
455 views

HSB -> HSL Converter

Starting from an image I would like to apply a custom filter to an image. I have thought and implemented this filter in HSL space and it goes like this : Boost the saturation of the pixels that ...