Questions tagged [image]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
95 views

Hiding a message in a photo using Mathematica

So, this is a problem that me and my friends are facing while doing a project for school. Our idea is the following. Given a certain photo we want to be able to hide a message behind it. Our approach ...
1
vote
0answers
42 views

Are pixels machine numbers? [closed]

Mathematica allows one to work with the information that is behind a photo. For example, the command ImageData generates a list containing the “pixels” (which will it be a number from $0$ to $1$ if no ...
0
votes
1answer
101 views

Plotting a complete graph with a given image as vertices [closed]

I am trying to plot a complete graph using a png image for the vertices. I tried a "drag and drop" approach with VertexShape, but the software gets ...
0
votes
1answer
59 views

Extracting intensity from density plot image given color bar

I have an image showing a density plot from a paper, as well as the corresponding color bar. I am trying to convert this back to a 2D array of intensities. Here's what I did, which works but seems to ...
2
votes
3answers
89 views

Export Long Plot with No Whitespace

Observe the following code: ...
2
votes
1answer
50 views

Converting a Non-Simple Closed Curve in an Image to a Parametric Equation

I would like to generate a parametric equation for a non-simple closed curve defined in a 2D image (shown below). This is the same problem as described in this question for simple curves. However, ...
3
votes
2answers
152 views

Importing an image and getting the real size between circles

I have taken this picture from a scientific paper: The paper says that the size of picture is 92.3 microns. By importing the picture in Mathematica and right-clicking on it and using Get Coordinates, ...
1
vote
0answers
24 views

How to make eplilog text visible while exporting plot as pdf?

I am having this problem that if I add some epilog text in a plot by rotating it, then while I export the plot as pdf, the text becomes invisible. It works fine if I export it as jpeg or png. What ...
-2
votes
1answer
47 views

How to transform the diffraction image into the function of light intensity with the order of diffraction? [closed]

In our pre-experiment, I got the image. It’s obvious that the order of diffraction from the top down is 3,2,1,0,-1,-2,-3, the background of optics is so easy. Then I have to get the light intensity of ...
4
votes
1answer
157 views

Were these Images made with Wolfram Language / Mathematica?

I am currently writing a paper in which Fibonacci Spirals are discussed. In the text of the paper the mathematics of these objects is discussed and the relevant equations and relationships are shown ...
4
votes
2answers
219 views

Enlarge the output picture and coordinate axis together like Matlab

Is there anyway to enlarge the output picture and coordinate axis together like Matlab? Like MatrixPlot or other Plot function. In matlab, there is a zoom button in ...
0
votes
0answers
34 views

How to get rid of the white margins in picture export?

I made a manipulate box to show some spherical harmonics decomposition, and everything is working great (but it's very slow, when I add more harmonics!). Then I need to export the picture, without ...
0
votes
0answers
16 views

Curved text layout with UnderoverscriptBox support

There are a few questions related to laying out strings of text along curves, Text along a lemniscate curve, How can I wrap text around a circle? and others. See the GIST. Most answers either layout ...
5
votes
1answer
202 views

How to Extract (Magnetic) XYZ Data Points from Color (Airborne Magnetic Survey) Image and Legend

I've been trying to work my way through this by working through search results like: Data extraction from a picture of a graph Numeric data from a color map Extract bathymetry data from a map I can't ...
1
vote
1answer
70 views

How to align a network graph to an image?

An arbitrary example: Create a random image Image[RandomReal[{0, 1}, {10, 10}], ImageSize -> Medium] Define some points and a graph to align ...
13
votes
1answer
1k views

Are Mathematica's maps copyright-free?

Are the maps available in Mathematica copyright-free? For instance, if I generate the image ...
1
vote
0answers
61 views

Is there a simple method to make a 3D cube from six square matrices?

I'd like to use Graphics3D to display a cube with an image on each face of the cube. Before I start padding x,y matrices to make x,y,z matrices, I thought I would ask the forum for any other ...
1
vote
3answers
106 views

ImagePad up to AspectRatio

I cannot come up with idiomatic Mathematica code to solve this simple problem: take: image and desired aspect ratio get image dimensions upsize the dimensions to desired aspect ratio return...
2
votes
1answer
78 views

Obtaining contours of the image

I would like to obtain contours(outline) of the image (black and white thin curve version of the original image). Outline that would just look nice. First attempt I first try using ...
1
vote
1answer
104 views

map distortions in colour wheel as a function

It appears that Adobe have distorted their colour distribution screenshot of image from Adobe Color: evenly distributed colour wheel: How can I use mathematica to map the colours and plot the ...
5
votes
2answers
242 views

Fit ellipse to a arbitrary 2D image to extract centroid, orientation, major, minor axis

I am wondering if there is an easy way to fit an ellipse into an arbitrary 2D image quickly, so its centroid, orientation, major, and minor axis length can directly be extracted. In MATLAB, this can ...
1
vote
1answer
67 views

Detect and correct sheared squares in image

I have the image I want to detect the plots and warp them into perfect squares. My workflow so far: corners=ImageCorners[img,10]; This returns a lot of corners, ...
0
votes
0answers
45 views

Import a huge stack of TIF failed in Windows, but successful in MacOS

I have a 16-bit stack of images (428 x 684 pixels) in TIF format. The stack has 20,000 images, about ~780MB. When I import it to Mathematica in MacOS (i7, 16GB RAM, BigSur), it successfully imports ...
4
votes
3answers
258 views

Remove some of the background noise to get clear microscopic image

I have a microscopic image (img1). I need to analyse it to be like the following image (img2): But how do I do it in Mathematica (I am using Mathematica 9)? I am not much familiar with the ...
4
votes
3answers
144 views

How to do a “random” image partition based on seeding points?

I'm new to image analysis with Mathematica, so far it looks it has great capabilities. I'm trying to do an image partition, similar to ImagePartition[], but "random". Suppose I have the ...
1
vote
1answer
43 views

Difference between ImageSize and RasterSize when exporting to PNG

I export 2D and 3D plots to PNG images using the export command. I can set ImageSize->{xsize,ysize} or ...
8
votes
1answer
203 views

Why does Mathematica set a resolution when exporting a PNG file with given pixel size?

I use the export command Export[path_to_png_image,content,ImageSize->{xres,yres},Background->None] to create PNG images with transparency and some fixed ...
2
votes
1answer
96 views

Export Vectorized Images

I read the answered question here which was for 7 years ago. I want to use DensityPlot3D function to draw a figure and save it as eps, pdf, or SVG as a vectorized ...
2
votes
1answer
62 views

How do I fully specify settings for an image to be used as a GaugeMarker?

I have designed a ClockGauge and wish to use three different images for the hour, minute and second hands.The images are not rectangular and are not symmetrical. The code used is below: ...
4
votes
2answers
270 views

How to create a smooth black and white texture without jaggies?

The following code creates a random black and white texture with ugly jaggies (pixelized "stairs") all around the shapes, because of the Binarize command. ...
4
votes
3answers
328 views

Image integration along a pathline

I have an image, and two points coordinates (x1,y1)/(x2,y2). I have two questions : 1- I want to know the intensity value of all pixels lying in a line between these two points (my end goal will be ...
3
votes
1answer
81 views

Automatic region of interests for 2D images

I have a picture displaying certain remarkable features (high intensity peaks). Is there a function that allows me to automatically draw a (Region Of Interests) ROI around the features and crop the ...
1
vote
0answers
73 views

Parsing raw pixel data as a Wolfram Image

Context. I have a C++ function which receives pixel data (along with width, height, ...
0
votes
1answer
82 views

Strange behavior of Show with picture + points

I have a square image of 1000 x 1000 pixels, and I want to generate a collection of points inside the image. Knowing that the image is a square, I thought of simply generating points in the domain {0,...
1
vote
0answers
72 views

Coordinates system used by Get Coordinates on large images

EDIT The problem mentionned below is specific to my version of Mathematica which is 12.1.0 It doesn't exist on Mathematica 12.0. Concerning 12.1.1, I don't know END EDIT I often try to crop images by ...
1
vote
0answers
60 views

Exported plot range of PNG not displayed properly

I am tring to export the plotted graphics as PNG, but its range is not coming properly: ...
5
votes
1answer
84 views

Incomplete web image scraping

Occasionally when I scrape images from a webpage, such as: Import["https://www.freeart.com/gallery/m/mondrian/mondrian.html", "Images"] only a ...
1
vote
1answer
101 views

Making features of an image more prominent

For the image below, would like to make the heavy black downward sloping lines more prominent and the fine gridlines in the background less prominent. Also, would like to provide operations for the ...
3
votes
2answers
239 views

How to create this image with the current colors and as a mesh?

I need to create this image bigger with that coloring, and also as a mesh or wire structure, please help me. I tried to connect the dots, but it didn't work and I deleted it There is some command ...
0
votes
2answers
58 views

Composition of images with different dimensions

I created a code to make an image composition ... ...
2
votes
1answer
96 views

Create concentric circles with numbers inside

Hello there if you can give me a hand I want to create and export to pdf the following figure, which if you realize forms the multiplication table. The idea is to be able to control the central number ...
2
votes
1answer
114 views

How to import and cut n images in 6 parts hopefully proportional to the written and export them to a directory?

I tried to get it well formatted but I won it I hope the question is understood I'm using the google form which allows you to do multiple choice tests, if they were language no problem, the problem ...
5
votes
2answers
228 views

Adding contour to images

I intend to optimize my work by adding an outline to my images automatically. I'm leaving this image as a reference for testing: I can make an outline of the image, but with poor quality ... ...
1
vote
1answer
28 views

Rasterizing an equation makes it low res

I've checked some quick tutorials to export equations as images, and all of them use the function Rasterize, but when I try to follow this method I get a very low res image of the equation. Can anyone ...
7
votes
0answers
70 views

Realistic and stylistic Image and Video corruption effects

I'd like to produce a video that looks 'corrupted' in some way, ideally like the sorts of MPEG corruptions you see occasionally. See this for examples: https://www.youtube.com/watch?v=i-bz21deEeY At ...
3
votes
2answers
102 views

How can I find all the rectangles in an image when they overlap?

When I apply MorphologicalComponents to images like the one below (which consist of white rectangles laid on a black background), I get a single object returned, as ...
3
votes
1answer
96 views

Is there a more practical way to remove backgrounds from a list of files in a folder on my computer?

Is there a more practical way to remove backgrounds from a list of files in a folder on my computer? Example: Imagine a folder with three image files... Unfortunately I waste time manually renaming ...
4
votes
1answer
108 views

How to combine image in specific positions

Daily I make an image composition with background (background) in alpha channel in the following dimensions: 558px (length) and 465px (height) ...
7
votes
5answers
448 views

How can I count the color pixels in each partition of the image

I have a image of 1000 x 1000 pixels of which I have made 5 x 5 partitions. After that I am looking for a way to count number of color pixels in each partition. Thanks in advance for help. ...
2
votes
1answer
62 views

Reciprocal Coordinates in discrete 2D Fourier

Is there a way to obtain the transformation of coordinates along with the Fourier transformation of a discrete data set? Say I have some pixelwise information ...

1
2 3 4 5
14