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

learn more… | top users | synonyms

3
votes
1answer
67 views

Problem with ComponentMeasurements and property “Centroid” [closed]

I am showing here three test images to investigate the output of ComponentMeasurements when using the property "Centroid". ...
1
vote
0answers
26 views

embeding an image in a cdf deployment

I would like to embed an image into CDF. Import function just import the function from a pathway but I would like the image to be present in the CDF or nb file as a part of it not importing. ...
2
votes
1answer
69 views

Find the area enclosed by a loop in an image (Contour in a plot)

Is there a way to simply compute the area enclosed by a line in an image, like this: Here's an example of what I mean by a few of the "enclosed regions" Solution 1 These sorts of images are ...
4
votes
1answer
164 views

How to apply by-hand image selection to different images

Mathematica supports image selections by hand, by utilizing the selection tool. I used it to extract relevant data (hundreds of little squares). Now I have a second image of same size, where I want to ...
3
votes
3answers
64 views

Magnification of a notebook image object

When you resize an image in a notebook with your mouse you get a tool tip with size and a magnification percent for your image: Is there some way to programmatically ascertain these values in the ...
1
vote
1answer
47 views

Getting raw data using DcRaw

I'm using dcraw program to import raw image data to Mathematica. When I use Run["dcraw -4 -D -T "image.nef"] (which converts it to an unprocessed linear TIFF file) ...
1
vote
0answers
48 views

2D image rotation about 3D vector and projection

I'm trying to rotate a 2D image such that the viewing angle is not along the normal to the 2D plane, but along some other vector. I tried various things such as: ...
3
votes
0answers
41 views

Overlay Inside a Grid/Column/Row Not Working

Here is a microscopy image of some cells I want to make measurements on with Mathematica: In order to make some measurements of cells in a microscopy image I have written a simple dynamic overlay ...
0
votes
1answer
41 views

How to use Rescale to make a brighter image?

I want to compose three single exposures into an RGB image. I have three 2D arrays that represent each exposure and I can combine them into a 3D array, specifying the RGB values for each pixel. My ...
0
votes
0answers
35 views

How to select very small components in an image

I have been trying to identify the centroids or positions of the small yellow dots (not the large regions) in the image below. I have adopted the following strategy (please see the code), however, i ...
2
votes
2answers
556 views

How to Flatten and stack Efficiently 50000 Images

I have 50000 grayscale images with 56*56 pixels each one. I need to flatten images and stakck it in the same array with dimensions 50000*3136 after that export the file as .CSV. I am doing this code ...
5
votes
2answers
83 views

Terser way to get the intensity of one pixel

I want a function to return the intensity of one pixel notwithstanding the Color Space of the source image. I wrote: ...
0
votes
2answers
63 views

How to batch convert a directory of images to thumbnails?

I have 50k images to resize, my first attempt at this was: ...
4
votes
1answer
84 views

Detecting rectangle shape from an image

Motivation: I want to automate the process of analyzing "Electron SpectroMeter (ESM)" data. ESM uses magnets to bend electrons so that electrons with different energy are separated spatially. ESM ...
13
votes
5answers
1k views

Fit image of mountain to gaussian

I want to detect the edges of an image of a mountain and then fit that to a gaussian. I am unsure about how to only get the mountain edge, rather than every single edge in the image. How do I ...
3
votes
2answers
43 views

Trouble aligning Graphics with Image

I import the test image eloquently named "Tank2": img = ExampleData[{"TestImage", "Tank2"}] And do an extremly poor corner detection: ...
2
votes
1answer
91 views

Colors in ImageMarker

The symbol ImageMarker (new in 10.4) seems to ignore color commands: ...
8
votes
1answer
119 views

ImageData to Image conversion

I assumed that Image and ImageData are inverses, so that the following expression gives back the original image. ...
7
votes
3answers
196 views

Find Background noise in Image

I have a set of 12 Images of a time dependent process. The Images also contain a static noise, which I want to get rid of. I had an idea to do that manually by looking at differences of images and ...
9
votes
2answers
342 views

Rotate an object in image about its centroid

I want to rotate an object in a image about its centroid. here is my code but the result is not as expected. Normally the centroid of the object does not change, except the case when the object is ...
1
vote
0answers
54 views

How to call python code on an image

I have lots of image processing code written in python and would like to call it from within mathematica. Is there a way to transmit the image data directly like with c++ and LibraryLink? I'd rather ...
13
votes
1answer
219 views

What governs images resizing in the FrontEnd environment

What is responsible for the middle Row images' size? And why single image row is different? ...
13
votes
4answers
1k views

Reproduce image effect in Mathematica

How do I create the "dotifying" effect below in Mathematica? I have tried to use Rasterize first to get the image pixelated, but how do I get the disc/circle ...
2
votes
1answer
77 views

How to make image3d smaller? Is `ImageResolution` useful?

I want to make the output of Image3D much smaller. For example ...
1
vote
0answers
29 views

Function with many lines that takes image as parameter not returning same result as if I run the same lines of code

Running the exact same lines of code in a function produces just a return of the original image without any points identified, whereas when I run the exact body of the function line by line it works ...
5
votes
1answer
102 views

Shadows interfering with image processing

I am currently working on processing a tic tac toe board to have a robot play a human user. As the lighting changed throughout the day, the image became more difficult to process. Is there a way to ...
14
votes
1answer
222 views

Grid cuts my images

Bug introduced in V9.0 or earlier and persisting through V10.4.0 pic2 = ImageResize[ ImageCrop@Rasterize@Graphics@Disk[], {Automatic, 40}] ...
1
vote
1answer
86 views

Get an array of coordinates of the edges of an image

Rick Sanchez from Rick and Morty How can I get an array of coordinates of the edge of Rick in order from left to right? I want to make my delta robot draw images. Additionally, I know that it is ...
3
votes
2answers
164 views

How to import 12-bit TIFF image

I have a CMOS camera which records images at 12 bit resolution. The camera software allows to save them as 12-bit TIFs. However, Mathematica cannot import this: ...
2
votes
1answer
110 views

How to use manipulate to draw an image pixel by pixel

I want to draw an image pixel by pixel using Manipulate. My code almost works but it erases the old points each time. ...
0
votes
2answers
117 views

Why does the function Image not yield a proper output? [closed]

Can I get the exact reason why the function Image doesn't yield a proper output in the below? Image[TreeForm@{1, 2, 3}] It ...
0
votes
0answers
41 views

How to make black text on white background [duplicate]

I have a Georgian black text on "dirty yellow" paper I want to make pdf, black text on white paper . I try I also try to like this... Can anyone help me? Sorry for my English. Thanks! ...
3
votes
0answers
66 views

How can I import from a usb webcam on the raspberry pi?

I'm trying to set up a raspberry pi as a webcam server and I need to import images into a mathematica notebook on the raspberry pi. I tried using CurrentImage[] just to test it but I got an error just ...
1
vote
0answers
66 views

FindPeaks “expecting an image” [closed]

I am trying to use FindPeaks for a list of data, but when I have tried to use it it returns an error. I went to the help menu for the function to check that everything is in the correct format, and ...
3
votes
1answer
72 views

Rasterize alters the quality of the figure

A quick 3D plot ...
3
votes
2answers
200 views

Filling a rectangle with an image

Say I have some rectangles of different sizes drawn on the screen. How can I fill them all with the same image? Ideally, the image would be resized to completely fill each rectangle. I've been trying ...
3
votes
1answer
82 views

How to prevent an option from being displayed by Options?

Options[image] This gives a list: ...
6
votes
1answer
111 views

Extracting PNG images from AVI movie

I have written the following code to extract all images from an uncompressed AVI movie and to save them as sequential PNGs. ...
0
votes
1answer
38 views

Exporting multiple sizes of the same image

I have generated an image using (for example) out = Plot[x^2, {x, -2, 0}, PlotLegends -> {x^2}] and would like to export two versions of that image, one that ...
19
votes
2answers
372 views

Reconstruct a graph from an image (curved edges and edge crossings)

Actually, I posted a very similar question before this.How to generate a Graph from a picture of a graph Dr. belisarius's answer have answered that question, but I find a limitation in that method: ...
12
votes
1answer
255 views

How to generate a Graph from a picture of a graph?

I have a picture like this I can get this graph's vertexes ...
3
votes
3answers
173 views

Use custom frame ticks on an image

I chose as an example a familiar figure! img = Import["Lena.jpg"]; Now let's confine her inside a frame ...
4
votes
1answer
97 views

How to adjust the parameter of TextureCoordinateScaling

I wanna draw a picture like this This is my current work,First get the texture of picture ...
18
votes
1answer
193 views

How to count proportion of two phase in a electron microscope picture

I have a picture: The sunk area is a phase,and the bulged area in another phase.I want count the proportion of this two area.this is my method.First I get the ...
2
votes
0answers
40 views

Exporting or save graph to pdf, when will the rasterization occur?

For simple graph Plot[Sin[x], {x, 0, 10}] No matter right click save as pdf or export as pdf, the result is vector image. But for ...
2
votes
0answers
141 views

How to convert an uploaded image to a “dot-to-dot” puzzle? [closed]

I would like to upload an image to Mathematica and have the software place numbered points throughout the image so that it appears as a "dot-to-dot" image puzzle. I would also like to specify exactly ...
1
vote
1answer
40 views
1
vote
1answer
56 views

Edit header information of a DICOM file and export it again

I have some DICOM files and want to edit a part of the Header and export the DICOM files with this edited header. I know how to Import a DICOM files and extract the Header Information, but how to ...
4
votes
3answers
186 views

How to realize a Harmonic Tool like as CorelDraw [duplicate]

I get a rectangle and a circle like following: The Harmonic Tool of CorelDraw can transition the rectangle to circle ...
7
votes
2answers
226 views

How to resample a list of Images

I have a list of picture(Noting the ordering) first: second: third: forth: My target is get the 3D'image,Now I get the mask of it like following(If you use ...