Hot answers tagged

59 votes

How to automatically remove text from images?

PLEASE NOTE There is a reason why watermarks are there in the first place - to prevent unauthorised reuse of images. For more information on the issues around removing watermarks from images,...
dr.blochwave's user avatar
  • 8,708
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
  • 23.7k
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
  • 384k
32 votes
Accepted

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

Without claiming much generality, I made the following. I'm using a slightly more complex image than your proposed one. ...
Dr. belisarius's user avatar
32 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,518
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
  • 18.7k
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
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
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
22 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
  • 233k
21 votes
Accepted

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

...
Dr. belisarius's user avatar
20 votes
Accepted

Reproduce image effect in Mathematica

Load image img = Import["https://i.stack.imgur.com/qzMGE.jpg"] ImagePartition and DominantColors Make an array of Disk of ...
rhermans's user avatar
  • 36.2k
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
  • 68.3k
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.4k
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
  • 112k
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
Accepted

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

Here's an idea that could work: The "Ferrite" areas have a border that's slightly darker than the background, while the area in between has a border that's slightly brighter than its neighborhood. So ...
Niki Estner'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

Reproduce image effect in Mathematica

Here's my solution. Change CompilationTarget -> "C" to CompilationTarget -> "WVM" if you don't have a C compiler available....
rhennigan's user avatar
  • 1,783
16 votes
Accepted

Rotate an object in image about its centroid

Those damn coordinate systems! :) You can see a small part of the object at the lower left corner of your result image. That's because you forgot to add the center vector after the rotation to ...
Dr. belisarius's user avatar
16 votes
Accepted

Bing daily wallpaper

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

Fit image of mountain to gaussian

A rough draft of a solution: ...
Karsten7's user avatar
  • 27.4k
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
  • 46.2k
14 votes
Accepted

Nontrivial background removal

1.This method is from documentation of function ClusterClassify ...
yode's user avatar
  • 26.3k
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.6k
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

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