Hot answers tagged

58 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,...
user avatar
  • 8,608
54 votes

Composition à la Mondrian

An extended comment follows. Mondrian, in the late work referenced by the OP and characterized by primary colored rectangles separated by black lines, employed an extraordinarily sophisticated ...
user avatar
  • 13.7k
44 votes
Accepted

Composition à la Mondrian

This is a similar idea to ybeltukov's, iteratively splitting rectangles into two smaller rectangles. I've used an integer grid to avoid getting small offsets between adjacent blocks, and a weighted ...
user avatar
  • 83.4k
44 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): ...
user avatar
  • 23.2k
39 votes

Composition à la Mondrian

Here is my attempt to be Piet Mondrian ...
user avatar
  • 42.8k
33 votes
Accepted

How can I detect if an image is of poor quality?

As was correctly noted in comments, out-of-focus images cannot been correctly detected by a simple gradient filter since out-of-focus images can have sharp edges. I propose another simple idea to ...
user avatar
  • 42.8k
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. ...
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' ...
user avatar
  • 9,188
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 ...
user avatar
  • 14.7k
31 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 ...
user avatar
  • 349k
30 votes
Accepted

Best method to find variation in width along the image of a slit?

I think the essence of the problem here is that width needs to be counted orthogonally to some best fit line going through the elongated shape. Even naked eye would estimate some non-zero slope. We ...
user avatar
28 votes
Accepted

How to make a pie chart using custom image

...
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: ...
user avatar
  • 35.5k
24 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 ...
user avatar
  • 12.6k
23 votes
Accepted

How can I capture a rectangular area from an image?

Tricky. But with a bit of creative cheating, I can get close: First, load the image and binarize it: ...
user avatar
  • 35.5k
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 ...
user avatar
  • 35.5k
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 ...
user avatar
  • 225k
21 votes

Apply an image as a texture to text

Here's a method based on creating a MeshRegion from the text: ...
user avatar
  • 83.4k
21 votes
Accepted

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

...
user avatar
21 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 ...
user avatar
20 votes
Accepted

Reproduce image effect in Mathematica

Load image img = Import["http://i.stack.imgur.com/qzMGE.jpg"] ImagePartition and DominantColors Make an array of Disk of the ...
user avatar
  • 29.3k
19 votes

Trace one point's coordinate values in sequentially images

Let's start with an example set everyone (at least everyone with a recent Mathematica version) should be able to use: ...
user avatar
19 votes
Accepted

How to use an image as a plot background

One can use Prolog to create a background for a Plot. ...
user avatar
  • 27.1k
18 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 ...
user avatar
  • 65.7k
18 votes
Accepted

Generating uniform random points over a binary image

Update Silvia proposed a much faster algorithm that I believe produces I uniform distribution. Here is my implementation of it. ...
user avatar
  • 264k
18 votes

Best method to find variation in width along the image of a slit?

The answer by Vitaliy is great but his approach has one drawback: ImageRotate introduces artifacts depending on the Resampling ...
user avatar
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. ...
user avatar
  • 111k
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 ...
user avatar
  • 35.5k

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