Questions tagged [image]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

ReplaceAll does nothing with the rgb values of a picture [closed]

In the book "Programming with Mathematica: An Introduction" at the beginning of the chapter on Patterns and rules an example is given where the colors of an image are transformed according to ...
5
votes
2answers
345 views

How do I dynamically draw an image?

Suppose I have some two dimensional list. For example: list = Partition[Range[0, 48], 7]; And I have some function that assigns a colour to each entry of the ...
2
votes
1answer
64 views

Mathematica exporting issues with Row[]

I've had this issue for quite awhile - and it's quite frustrating. When publishing papers, we try to get all of our figures in .pdf for obvious reasons. Usually, Mathematica exports to .pdf just fine, ...
2
votes
0answers
61 views

Smoothing a image while retaining the edges

In my previous post here it is mentioned that using ImageResize before ImageGraphics will increase image quality of the final ...
0
votes
0answers
58 views

Random points from an image using a BernoulliDistribution

I am a Mathematica newbie. I need to sample random points from an image which I have stored in a variable img as: ...
0
votes
0answers
29 views

save each picture individually to individual jpg file (export image) [duplicate]

This piece of code returns 10 pictures all at once as output. However, I would like to save each mandala picture file separately. So design one will have picture1.jpg, design two will have picture2....
0
votes
0answers
40 views

Scraping Images that are Directly Embedded in a Webpage or Dynamic?

I need to scrape URLs for photo albums like Flickr and Facebook for images from a certain event. I'm trying to use Import["link", "Images"], as shown at https://...
2
votes
0answers
56 views

Suppressing non-deterministic behavior in Image

The following issue is experienced in Mathematica 11.3 on Linux (debian 9) but I am pretty sure it was already present in version 10 on Linux. The expression ...
1
vote
1answer
60 views

Adding an Image at a specific place on an existing image

I have created the following PDF: Basically an image, with a description underneath and a space to take some personal notes: ...
3
votes
3answers
120 views

Why is the color changed after applying ImageData?

I have an image square.png as below:- I imported the image as ImageSquare, and then applied ...
2
votes
0answers
45 views

Identifying overlapping incomplete squares in image

I am trying to align my device and markers automatically using positioners driven by Mathematica. The camera feed looks like this: The device is the black square with gold electrodes. The markers are ...
1
vote
1answer
28 views

`PlotRangePadding -> 0` still leaves 1 pixel border

The following should create a 50x50 image named /tmp/nopad.gif with mostly random colors and a red border: ...
7
votes
1answer
240 views

How to recreate this 3D plot?

In other languages, one can make a FeaturePlot3D-esque graphics where the inset images look realistically three dimensional. Meaning that they are smaller when farther away (and also hazier). So how ...
2
votes
0answers
86 views

How to achieve this fractal image transformation?

The app MirrorLab on Android has a very interesting Julia Effect, and I'd like to recreate this effect in Mathematica. Here are some examples of input images and their outputs: ...
3
votes
2answers
79 views

Visualizing Color Values On Original Image

I have an image and I would like to retrieve all color values of pixels which are located along stribes: So what I do, is the following: I import the image from the web I get the image dimensions (w,...
2
votes
2answers
271 views

How to prerender / rasterize a graphic without losing location information

I have a Graphics object for a detailed plot that has too many points and regions in it to be quickly rendered, which I want to use as a background for a ...
3
votes
1answer
43 views

How to change size of an image in the background of a graph?

I'm trying to put a background image in a graph I've made but I can't figure out how to resize it so it fits the whole background, rather than just the section. The code I have so far is ...
1
vote
1answer
77 views

Import image files in the order of the file name number [duplicate]

I would like to import images which are frames from a video, they are numbered, so importing them in the correct order should not be a problem... However, when I import them, by writing: ...
3
votes
1answer
69 views

Normalize ImageDistance

I have two images: im1,im2. When I compute their distance, using ImageDistance[im1, im2] I ...
3
votes
2answers
59 views

How to get appropriate scaled image from graphic rectangle

I am trying to make an image out of a graphic, which is a rectangle with given size. However, the dimension of the image do not correspond to the size given to the rectangle: ...
13
votes
2answers
549 views

Processing images from NASA's Juno Jupiter Orbiter

Question Can you help me improve what I’ve done to create an enhanced-color picture from an image provided by NASA’s JunoCam? [My work is shown in the penultimate image of Jupiter in this post.] I’...
7
votes
3answers
248 views

How to change the color of the background of an image?

I have an image, and I want to change the color of its background. For example, I want to change the color of the sky from blue to green (or just to pure-white, for simplicity). I have already get the ...
6
votes
2answers
127 views

How to arrange images in a hierarchical structure?

Something like this picture I've tried to use ImageCollage with different weights and other conditions, but all of them arrange pictures arbitrarily. For instance ...
5
votes
1answer
108 views

How to use ComponentMeasurements with a matrix?

The function MorphologicalComponents works on both images and matrices, as in the following code: ...
6
votes
4answers
213 views

How to paste one image to another one, by forcing the former's background as transparent?

I have 2 images, imgBlackOnly and imgRedOnly as below, which already have the same ...
1
vote
2answers
92 views

How to increase the speed on opening and playing gif?

I have a gif Example.gif, and would like to play it in a presentation. I used the following code:- ...
0
votes
1answer
67 views

Multiple buttons on an Image [closed]

I am trying to create an interactive map that when you click a room, you get send to a more detail of it. I am struggling to put multiple buttons on an image as well as have them line up with the ...
2
votes
1answer
157 views

Overlap two images and give movement and the result record it in an animated gif

I need to put the circular image 1 in the image with the hole 2 (and cover the gap) the idea is to create an animated gif that shows the image 1 turning to the right and image 2 to the left in a size ...
1
vote
0answers
100 views

Saving in 2D and 3D in vectorial (pdf or svg) format

Good Day everybody, I have difficulties to save both 2D and 3D plots in vectorial format. I can get acceptable results if I save manually: righ-click on image, "Save Graphic as..." or "Print as...". ...
11
votes
2answers
230 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
64 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
215 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
71 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
60 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
62 views

How to remove the undesired border of the GeoGraphics?

I have created an image of Europe as below:- ...
4
votes
1answer
94 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
72 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
64 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
90 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
160 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
104 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
83 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
112 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
110 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 ...
1
vote
1answer
141 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
130 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
195 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
95 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
807 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
216 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 ...