Search found 12 matches

by yarr
2017-06-24T01:44:14-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

All right, I found the solution: removing unnecessary line

Code: Select all

		oceanmask.png -mask oceanmask.png -compose Copy -composite ^
But please tell me if the code could be smarter.
by yarr
2017-06-24T01:16:28-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

After upgrading IM I noticed meaningful difference in my other composites rendered previously as I expected. ImageMagick 6.9.2-0 Q16 x64 2015-08-15 http://yarr.strefa.pl/maps/blueyahoo_composite_old.jpg ImageMagick 7.0.6-0 Q16 x64 2017-06-11 http://yarr.strefa.pl/maps/blueyahoo_composite_new.jpg Can ...
by yarr
2017-06-23T13:41:03-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

I reinstalled my Windows IM. Both commands work: convert admin_borders.png ^ ( oceanmask.png -blur 0x5 -level 99,100%% ) -compose In -composite ^ admin_borders_choked.png convert admin_borders_choked.png -alpha off -threshold 0 ^ -define connected-components:area-threshold=75 ^ -define connected ...
by yarr
2017-06-23T13:27:19-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

PNG* rw- Portable Network Graphics (libpng 1.6.17)

I use Windows but I tried Cygwin also.
No matter what I use - commands don't work.
I will upgrade IM. Maybe it will help.

Thanks.
by yarr
2017-06-23T13:17:34-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

None of this commands worked.
All right, I will upgrade IM and tell you if it helps.
by yarr
2017-06-23T13:05:09-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

convert admin_borders.png \ \( oceanmask.png -blur 0x5 -level 99,100% \) -compose In -composite \ admin_borders_choked.png # first command convert admin_borders_choked.png -alpha off -threshold 0 \ -define connected-components:area-threshold=75 \ -define connected-components:mean-color=true ...
by yarr
2017-06-23T12:05:34-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

Fred, both commands produce black image in my environment. Image: admin_borders_clean.png Format: PNG (Portable Network Graphics) Mime type: image/png Class: DirectClass Geometry: 1536x864+0+0 Units: Undefined Type: Grayscale Base type: Grayscale Endianess: Undefined Colorspace: Gray Depth: 16-bit ...
by yarr
2017-06-23T10:17:09-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

They are both rendered from the same cartographic shape with same compression/palette settings. I don't know what how to prepare them better. Maybe it would be easier to cut borders before conversion to grayscale PNG? (Originals are rendered as black & white images.) Yes, I know this is not trivial ...
by yarr
2017-06-23T03:33:51-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

Re: How to erase shoreline but preserve admin land borders?

Thank you, Fred. Generally I use Windows but its scripting environment is too lazy so I often use Cygwin console too. Sorry for this mixed syntax - I know the difference between systems. I would like only to preserve white borders between countries . Shoreline should be removed but it should be done ...
by yarr
2017-06-22T12:44:17-07:00
Forum: Users
Topic: How to erase shoreline but preserve admin land borders?
Replies: 21
Views: 13040

How to erase shoreline but preserve admin land borders?

Hello I need to separate and remove shoreline from the administrative boundaries mask. The best result I achieved with these two commands: convert admin_borders.png \( oceanmask.png -blur 0x5 -level 99,100% \) \ -compose In -composite admin_borders_choked.png convert oceanmask.png -background Navy ...
by yarr
2016-09-05T13:02:34-07:00
Forum: Users
Topic: Blur level dependent on pixel position?
Replies: 2
Views: 2393

Re: Blur level dependent on pixel position?

Thank you.
by yarr
2016-09-05T09:36:54-07:00
Forum: Users
Topic: Blur level dependent on pixel position?
Replies: 2
Views: 2393

Blur level dependent on pixel position?

Hello I need to stretch oval shapes on cartographic bitmaps like this one - http://anatol.myqnapcloud.com/maps/STARS_6m_30000_proxy.jpg - in order to avoid distortions while wrapping images on sphere. Shapes should be stretched horizontally (suppose according to log function): maximum distortion on ...