Skip to main content
45 votes
Accepted

Create the source image for this cool animated illusion

TUTORIAL Import Image img = Import["https://i.stack.imgur.com/xzcUg.jpg"] Split into Components Using this approach (credit: nikie): ...
corey979's user avatar
  • 24k
34 votes
Accepted

How to project 3d image in the planes xy, xz, yz?

Update 2: The function projectToWalls does not work in version 12.0 because the function PlotRange no longer works. To fix the ...
kglr's user avatar
  • 396k
33 votes
Accepted

How to generate image like QR code with Mathematica

This version of generation code is originally posted at wolfram community. I guess a story-telling type post would attract more upvotes and probably give some insight about how to 'solve problems' ...
Wjx's user avatar
  • 9,620
32 votes
Accepted

How can I make a graph network from image of granular packing?

Another starting point, where the objects being more or less fixed size disks is used ad hoc to measure their centroids as components after some mangling, and those which are close enough to each ...
kirma's user avatar
  • 19.1k
25 votes
Accepted

Are Mathematica's maps copyright-free?

No, they are not copyright-free, but the data they are based on is openly licensed. The map data mainly comes from OpenStreetMaps (which is licensed under the Open Database License, similar to ...
Carl Lange's user avatar
  • 13.1k
24 votes

Deleting noisy data from a plot (manually) and export the best remaining data

One simple way of "filtering" your data is to treat the points as a graph, and search for the shortest path from left to right: ...
Niki Estner's user avatar
  • 36.1k
23 votes
Accepted

Quickly importing several thousands of jpg files?

Reading the file as Import["file.jpeg", "ImageNoExif"] is noticeably faster on my machine than the default ...
Szabolcs's user avatar
  • 235k
23 votes
Accepted

Why in Mathematica 13 do imported PDFs have lower image quality?

TL;DR Has the default changed for some import option? From the investigation given below we see three important changes: By default FrontEnd of version 13.0.0 applies to the whole Notebook window a ...
Alexey Popkov's user avatar
22 votes
Accepted

How to align a poster?

A few minor mistakes: corners and the target coordinates weren't in the same order For some reasons, pixels isn't the default unit for ...
Niki Estner's user avatar
  • 36.1k
19 votes

Calculate the 2D Fourier transform of an Image

Taking the Fourier transform is easy and fun! Let's strip away some of the complexities. First, remove the color from the image, since this just complicates things (you can always take the transform ...
bill s's user avatar
  • 69.1k
19 votes
Accepted

How to use an image as a plot background

One can use Prolog to create a background for a Plot. ...
Karsten7's user avatar
  • 27.5k
18 votes
Accepted

Extracting data from analog screen photograph

Doing this with basic image processing can be done. In comparison to the post you have linked, your situation is more complicated because you have a monochrome image with no option to separate colors. ...
halirutan's user avatar
  • 113k
18 votes
Accepted

Wrong Graphics coordinate system after Image to Graphics conversion

I reproduce the issue with version 13.0.0 on Windows 10 x64. Apparently, the issue arises due to a non-default value of ImageResolution option of ...
Alexey Popkov's user avatar
17 votes

Fit image of mountain to gaussian

A careful method of finding the mountain boundary including what is masked by the snow but not including the clouds: ...
Alexey Popkov's user avatar
17 votes
Accepted

Remove a specific color (black) within an image

Remove the white lines in the S with a vertical opening Opening[i, {{1}, {1}, {1}}] Remove the small black lines with a closing ...
Batracos's user avatar
  • 2,105
16 votes
Accepted

Bing daily wallpaper

I would use RawJSON to import the information: ...
Carl Woll's user avatar
  • 131k
15 votes

Fit image of mountain to gaussian

A rough draft of a solution: ...
Karsten7's user avatar
  • 27.5k
15 votes
Accepted

Fit image of mountain to gaussian

A method not needing "magic numbers": ...
Dr. belisarius's user avatar
15 votes

How to project 3d image in the planes xy, xz, yz?

If you only need the 2D projection images, you can just project the 3D image from the six cardinal directions: ...
Roman's user avatar
  • 47.9k
14 votes
Accepted

Nontrivial background removal

1.This method is from documentation of function ClusterClassify ...
yode's user avatar
  • 26.8k
14 votes

How to implement a free version of WebImageSearch?

So after being wrong about Bing being free, we'll pursue my other suggestion, which was to use the ServiceConnect framework. I demonstrate how to use it in general here. For the purposes of this, ...
b3m2a1's user avatar
  • 46.9k
14 votes
Accepted

Why this simple case of watershed segmentation fails?

In the matlab example, D is the distance transform of the complement of the binary image. Next the complement of the transform is stored in ...
bobthechemist's user avatar
14 votes
Accepted

How to extract Bitmap image from SQL records?

Summary The Northwind database was originally an MS Access database, so the pictures are BMP images wrapped within OLE objects. We must strip the OLE header before parsing them. The following ...
WReach's user avatar
  • 68.9k
14 votes

Detecting two (almost) vertical lines, and find the gap between them in (pxl)

Update 2: A simpler/faster approach to get the gap length: ...
kglr's user avatar
  • 396k
14 votes
Accepted

Lens on a map. Realistic imitation of magnifying glass on images with text and other small features

In your code you use constant strength: (r/strength). You can change it to depend on r: ...
azerbajdzan's user avatar
  • 18.6k
13 votes
Accepted

Defining a Function to Modify the Image Data of an Image

This method based on Steganography.Hope to help. I suppose you have this string: string = ExampleData[{"Text", "USConstitution"}] PREAMBLE We the People of ...
yode's user avatar
  • 26.8k
13 votes

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

...
flinty's user avatar
  • 25.5k
13 votes
Accepted

Labeling images for TrainImageContentDetector

Updated answer^2 (the old answer is below) I have updated the code to manage image selection, class selection and editing. The main annoyance is that event handler needs some box structure to be ...
Batracos's user avatar
  • 2,105
12 votes
Accepted

How to recreate a certain word cloud

Finally there's an answer for this interesting question~ the result generated is like this: or Code As usual, code first, explanation second~ ...
Wjx's user avatar
  • 9,620

Only top scored, non community-wiki answers of a minimum length are eligible