Blur level dependent on pixel position?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
yarr
Posts: 12
Joined: 2016-09-05T02:20:25-07:00
Authentication code: 1151

Blur level dependent on pixel position?

Post by yarr »

Hello

I need to stretch oval shapes on cartographic bitmaps like this one -
Image -
in order to avoid distortions while wrapping images on sphere.

Shapes should be stretched horizontally (suppose according to log function):
maximum distortion on the top and the bottom,
minimum in the middle, like on this example:
Image

or on this one:
Image
Three frames of the same sky map area - shapes on the middle one
should be distorted like these on the right and the left image.

Is there any way to do this job with help of IM?
I guess 'blur' would be suitable tool but of course I'm not sure about that
and I don't know how to tell IM what I need to have been made.
I will be grateful for any help or references.

Forgive me my rough English please.

Best -

yarr
yarr

ImageMagick 7.0.6-0 Q16 x64 2017-06-11
Windows 7 Professional 64 bit, i7-4790 CPU 3.60 GHz, RAM 32 GB
Cartographic environment: Perl, GDAL, Global Mapper
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Blur level dependent on pixel position?

Post by snibgo »

You can do this with "-compose Blur". Some examples at http://im.snibgo.com/selblur.htm#xyrad
snibgo's IM pages: im.snibgo.com
yarr
Posts: 12
Joined: 2016-09-05T02:20:25-07:00
Authentication code: 1151

Re: Blur level dependent on pixel position?

Post by yarr »

Thank you.
yarr

ImageMagick 7.0.6-0 Q16 x64 2017-06-11
Windows 7 Professional 64 bit, i7-4790 CPU 3.60 GHz, RAM 32 GB
Cartographic environment: Perl, GDAL, Global Mapper
Post Reply