Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [image]

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

11
votes
2answers
196 views

Managing memory for video frames

I am trying to import a gif animation, which is about 80MB. The goal is to convert the image to grayscale, and then do some calculation on ImageData for each frame. ...
1
vote
0answers
45 views

Grouping components to form a complete perimeter

This is a question relating to grouping of components picked out using ComponentMeasurements to make a complete perimeter of a shape. My goal is to measure the perimeter of each of these worm-like ...
12
votes
4answers
204 views

Set pixel aspect ratio?

Bug probably present through all versions of Mathematica [CASE:4081592] Does Mathematica have a feature to set the pixel aspect ratio of 2D images? For example, ...
4
votes
2answers
62 views

Mapping circular image onto surface

I am trying to map the image "Angels and Devils" by M.C. Escher onto a cigar-like shape. The code I have now is ...
2
votes
1answer
44 views

How to avoid margin when combining ListDensityPlot and an Image?

I have an image img1 and some data with a density plot plot1 to reflect the target position of the image. I tried to combine <...
5
votes
1answer
54 views

How to remove the undesired border of the GeoGraphics?

I have created an image of Europe as below:- ...
4
votes
1answer
86 views

How to add an image to the bottom of a ListPointPlot3D?

I am trying to plot the points of virus outbreak along time of 3 areas. I already have the data1, which have 3 columns: x-coordinate, y-coordinate and time. Then I ...
4
votes
1answer
57 views

Sort images by difference

I can use ImageDistance to get the Euclidean distance between two images. But, I have list of (~100) images, and I want to sort them such that the average ...
1
vote
0answers
52 views

Fitting a 2D array with two parameters to another 2D array

I am trying to fit an array to an image generated from real data. Here is the sample image: This is a filtered magnetic dipole with some noise thrown in, and now I'm trying to fit my equation for a ...
0
votes
0answers
65 views

Improve SEM sharpness image

Hello Mathematica experts :) I have some SEM images of the nano-particles. However, the technician can not get better results. With Mathematica image treatment, could we improve to get higher ...
12
votes
1answer
146 views

“Boundary” thickness in HighlightImage

Bug introduced in 11 or earlier and persisting through 11.3 CASE:4076121 I'm having a hard time to understand how I can use HighlightImage and only draw the ...
1
vote
1answer
75 views

Use slider to manipulate images?

Suppose that I have plotted many figures and have exported them as images. Now for the post-processing phase, I would like to import these figures and manipulate them in such a way that a slider ...
1
vote
0answers
76 views

Revert image fusion using discrete wavelet transform

How can I extract a hidden image using discrete wavelet transform? I have used the function ImageFusion from this site to hide an image inside another one. ...
3
votes
1answer
85 views

Convert a colormap image into data values according to a legend

I have this image that I want to turn into data using this gradient black being 0, white being 1, and all the colors in between accordingly, so I could later use ...
1
vote
4answers
86 views

setting size of images which are result of TextRecognize

Im learning Mathematica and the Wolfram language for shot time by myself. Its a pain for me that many settings are somehow hidden. Now I spent hours to find solution for something I already did with ...
0
votes
1answer
121 views

Remove a specific color (black) within an image [closed]

I need the image to be totally blank, so the black must disappear
7
votes
1answer
122 views

How to cache results of WebImageSearch?

Every call to WebImageSearch costs money (wolfram service credits), thus, I would like to page through results without having to redownload them. Given the ...
5
votes
3answers
185 views

Performance of ImageApply

I would like to optimize this code fadeAndShine[old_, new_] := If[old == new, {1, 0.8, 0.2}, new]; ImageApply[fadeAndShine, {imageA, imageB}] Is it possible, and ...
1
vote
1answer
91 views

Three seconds to take the 1st element of list?

I'm working with FashionMNIST, a small (70k) list of rules containing 28x28 images. I don't understand the slow-down in the example below. No matter the size of the list, simple operations like taking ...
3
votes
2answers
800 views

How to generate “x1” to “x200” pngs faster?

Table[ Export[ StringJoin["x", ToString[i], ".png"], Style[StringJoin["x", ToString[i]], RGBColor["#FF00FF"], 1024] ], {i, 1, 200} ] How to make it ...
2
votes
1answer
204 views

How to count the number of eggshells in the image

My goal for this is to simply count the number of eggshells in the image. Using color negate only leads to this ...
2
votes
3answers
194 views

Masking an image with an annulus

I have an image where I would like to do 2 things: a) Put a disk of radius r on an specific $\{x,y\}$ position on the image such as the result is the original image within the disk and black color ...
4
votes
1answer
133 views

Distinguishing different cars in picture

I recently posted a question. And I got a great answer from Mr. Carl Lange Image Segmentation His solution worked like a charm. However, I got another request which is more generic in nature. The ...
1
vote
0answers
146 views

2D Fourier transform of a diffraction pattern Mathematica vs FourierPainter

We are trying to make sense of the numbers provided by the PC program FourierPainter for a 2D Fourier Transform of a diffraction pattern. We would like to evaluate the ratio of the zeroth harmonic ...
4
votes
1answer
149 views

Image Segmentation

I have what should be a pretty simple question for Mathematica gurus. I have a set of images containing cars and a background. I am trying to create a black and white image where the white part is the ...
1
vote
1answer
64 views

How do I visualize images stored in SQL?

here is the background: I have a SQL database that (among other data) contains images I connect to the database, extract and store the relevant data in variable picData like so ...
1
vote
1answer
66 views

How to control image resolution in ColorQuantize? [closed]

When exporting a GIF animation, for example ...
1
vote
5answers
229 views

How to create a checkerboard pattern?

I would like to write a generalized function to create a checkerboard pattern of any size (width of each square and frequency of repetition). How can I do so? Edit 1 This is what I tried. ...
6
votes
3answers
1k views

Making an image from an array of numbers

My data is as shown below. I want to make an image where the 1's have one colour, the 2's have another colour and 0's are rendered as blank. How can I achieve that? ...
0
votes
1answer
83 views

Exporting an image results in changing pixels value [closed]

When exporting an image from the Mathematica and comparing it to the same image in the code using ImageData[Img,Byte], it results into 2 different vectors , so what'...
0
votes
1answer
51 views

How to save crop image with alpha value

I have an image with alpha channel. I want to take a crop and save it with alpha channel. When I save it manually using the "save Image As" tools, I get an RGB image without channel value!
0
votes
1answer
124 views

Set absolute size of Axis or frame for a plot

I have to publish some work and it requires to meet specific criteria for the image size and plot size. 1) the Area of the figure must be fix 2) the width of the x-axis also must be fix for any plot ...
1
vote
2answers
104 views

Try to find the number of points near the black color ؟

Given this RGB image I want to find the number of points that are, or almost, black ؟
3
votes
1answer
182 views

Setting up a coordinate system and canvas size for subsequent drawing

I'd like to create a blank Graphics object of a certain size with a certain coordinate system (PlotRange) and subsequently draw ...
0
votes
0answers
26 views

size of images in dialogboxes [duplicate]

I am having issues with the size of multiple images in dialog boxes. I am trying to create a dialog box that handles three images (red green and blue channels obtained by a microscope) with color and ...
6
votes
2answers
150 views

Fit a circle to a region of an image

I would like to develop a routine that associates a size with images such as that below. My idea is to find the radius of the circle (centered at the origin) that contains (say) 95% of the total ...
1
vote
0answers
245 views

How to change image data (2D matrix) from cartesian to polar coordinate system? [duplicate]

I have a 2D matrix corresponding to the shown image in Cartesian coordinates. In image, the horizontal axis is x and vertical corresponds to y-axis. How to change this 2D matrix to polar coordinate ...
1
vote
1answer
79 views

Removing outer concentric circle picked up by ComponentMeasurement

So I have performed EdgeDetect and ComponentMeasurements on my images and obtained a pretty good elliptical fit. However, the black shadow of the beads in the image is being picked up by ...
1
vote
1answer
98 views

Aligning plot with image / padding issue

I'm having a curious issue aligning images and plot, which is mostly working but I'm not sure how to get it fully working. I'm reading in huge image files, and associated CSV files with the (x,y) ...
3
votes
1answer
208 views

Exporting a table in .png format

I am trying to export a data table in PNG format. I evaluated ...
0
votes
1answer
83 views

How can I count the red circles I drew? [duplicate]

I reached there the last step is to count the circles. Please help me.
1
vote
0answers
193 views

Export to PDF: DensityPlot & AllowRasterization->False

How to get production-quality vector graphic exported from Mathematica that looks like what is plotted in Mathematica. Example code: ...
3
votes
0answers
117 views

Fourier image correlation is likely to be wrong [closed]

I have images of two identical ellipses, which differ by the orientation. I want to obtain the difference angle between them by means of phase corelation method (https://en.wikipedia.org/wiki/...
1
vote
1answer
137 views

Eliminate the black color of the “W” so that it is equal to the “S” using Mathematica?

I have searched the answers for a long time to help me with this but I can not find it. I tried to do with drawing programs but it looks good. How can I leave the "w" blank, respecting its shadows or ...
9
votes
3answers
530 views

Implementing Arnold's Cat Map

I'm trying to write a notebook that can take any square input image, and apply a cat map to it a specified number of times. I've written a pretty simple script that seems to work: ...
2
votes
2answers
145 views

How to display colored graphics object in the same color space?

Consider, I have a disk colored in "LAB" color space. When I convert the graphics into image object it is by default getting converted into "RGB" color space. ...
4
votes
2answers
92 views

How to extend the grid lines to the image margins

As the following image shows, are there any good ways to extend the grid lines to the image margins while keep the original aspect ratio and the label's position unchanged? (In fact, all the features ...
13
votes
2answers
434 views

Extracting data from analog screen photograph

I'm using an analog profilometer from the 1970s and need a way to digitize the data and the only way is through a photograph. I've searched but all I could find was how to extract data from computer ...
1
vote
1answer
98 views

Manipulatable Geometry from an Image

Is there any way, I can take an existing internet image and have Mathematica read it in, so it can be manipulated using the Manipulate function? The image I would ...
0
votes
1answer
79 views

Removal Background with Shadows on HUE

I have an image of a leaf on a poorly white screen and need to find out just the leaf: The problem is that it contains greenish shadows, so simple color-based methods are not enough. Thus, I need ...