Skip to main content
15 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
  • 19.7k
12 votes
Accepted

Moving disk over a underlying image

I think the cleanest solution is to use HighlightImage which also has interactive example in the documentation that might be useful to you. ...
Domen's user avatar
  • 27.4k
7 votes

Is there a faster way to compose a large number of random Gaussians?

Basically the idea is to draw in vector form, then exploit FrontEnd's ability to Rasterize the result. First we make the base primitive corresponding to a "...
Silvia's user avatar
  • 27.6k
7 votes

Is there a faster way to compose a large number of random Gaussians?

You use MapThread with a CompiledFunction. But CompiledFunctions have their own threading ...
Henrik Schumacher's user avatar
6 votes

How to import many Images in Mathematica?

Either removing the "Data" format argument or using "JPEG" instead should do it. Here is a short example based on the original code. ...
vindobona's user avatar
  • 4,961
6 votes

Help with a simple figure for a poster

Something like: ...
Daniel Huber's user avatar
  • 53.2k
6 votes

Convert black and white pictures into color images

Note I did not write any of this code, netevaluation is taken directly from the Examples -> Evaluation Function of the "ColorNet Image Colorization Trained ...
ydd's user avatar
  • 4,187
5 votes

Is there a faster way to compose a large number of random Gaussians?

The 3D Case takes just a few seconds using OpenCL. It was a real pain getting OpenCLLink to work. I also improved the alpha blending. ...
flinty's user avatar
  • 25.6k
5 votes
Accepted

How do I export an entire notebook as an image?

Edit, I found out how to do it, but it is not rendering the notebook style correctly for some reason :( ...
Alec Graves's user avatar
  • 1,078
5 votes

Gray level shading of image histogram bins

B = RandomImage[1, {200, 200}]; ImageHistogram[B, ColorFunctionScaling -> False, ColorFunction -> GrayLevel] With your image we have to scale the vertical ...
Roman's user avatar
  • 48.5k
5 votes

Crop images with two borders

Since there are some letters on the right down corner,the crop seems not so perfect. ...
cvgmt's user avatar
  • 77.2k
5 votes
Accepted

Finding centers and radii of multiple circles in a dense image

If your images have circles with distinct colors, as is the case for your example image, you can extract them by color and then find their centers as the locations at maximum distances from the ...
tad's user avatar
  • 2,095
4 votes
Accepted

Rotate components on image around a fixed point

Well, this may be easy to overlook, but it's actually mentioned in Details and Options section of document of ImageTransformation: In 2D, the range of the ...
xzczd's user avatar
  • 67k
4 votes
Accepted

minimal enclosing k-gon of binarized image

Unfortuantely RegionMember and RegionWithin don't evaluate for such a complex question. In my answer I'll show how to find a ...
Ulrich Neumann's user avatar
4 votes

Evaluating a questionnaire from image

First I start by identifying the vertical position of each question number. You can see that the answer boxes on the right for each question line up nicely with the bulleted question number on the ...
ydd's user avatar
  • 4,187
4 votes

Please help me how to label curves like this

It starts with a curve by ParametricPlot, a RegionPlot and a Graphics list of objects bound together in a Show statemenent, e.g. ...
Roland F's user avatar
  • 3,887
4 votes

Gray level shading of image histogram bins

Do it yourself using a bar chart: ...
flinty's user avatar
  • 25.6k
4 votes
Accepted

Crop images with two borders

img = Import["https://i.sstatic.net/qAlmj.jpg"]; ImagePad[img, -BorderDimensions[GradientFilter[img, 1], 0.1]]
Syed's user avatar
  • 55.7k
4 votes
Accepted

Electronic Einstein - Reproducing Herbert W. Franke's dissolving images

Trying to reproduce the Elekronischer Einstein using ImageSaliencyFilter suggested by ydd for the background, together with ...
vindobona's user avatar
  • 4,961
3 votes
Accepted

Making a Scanimation

...
Tomi's user avatar
  • 4,548
3 votes

Why do image sizes shrink when printing multiple plots as a single object?

From the answer to my other questions (by kglr), I produced the following answer. ...
Tugrul Temel's user avatar
  • 6,233
3 votes

How do I export an entire notebook as an image?

This is easy to do on Linux. For windows or mac, you might have to use online tool. There are many of them if you google. I just tried it this on one large notebook I have. open the notebook and save ...
Nasser's user avatar
  • 146k
3 votes

How to calculate the depth of the lake in mathematica?

We can use a combination of GeoNearest and Entity: I use the center of your map: ...
Greg Hurst's user avatar
  • 36.4k
3 votes
Accepted

ImageResize change image pixel value range

Compare Information[img] and Information[Import["D:\\1.png"]]. You will see that the data type of original image is <...
Domen's user avatar
  • 27.4k
3 votes
Accepted

How can I remove the background from a bokeh photo?

img = Import["https://i.sstatic.net/SMAtq.jpg"] Adding as an answer, here are two methods to remove the blurry background. There are likely several more ...
ydd's user avatar
  • 4,187
3 votes

Help with a simple figure for a poster

You could also import an image of this: ...
Craig Carter's user avatar
  • 4,565
2 votes

Convert .gif to HTML and keep animation

It seems when you export AnimatedImage or a list of frames to HTML, Mathematica give you a notebook interface that does not ...
Ben Izd's user avatar
  • 9,319
2 votes

How to create a checkerboard pattern?

ParametricPlot with MeshShading -> {{None, Black}, {Black, None}}. ...
cvgmt's user avatar
  • 77.2k
2 votes

Fill a Circle in an Image

Using RegionImage: (Introduced Sept 14, 2017) RegionImage[Disk[]]
Syed's user avatar
  • 55.7k
2 votes

How to do edge detection in Mathematica?

ImageLines will be troublesome on this processing especially for the "empty" image where many horizontal lines can be found and ranked nearly equivalently. I suggest attempting to determine ...
OpticsMan's user avatar
  • 576

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