Search found 7 matches

by meetar
2013-08-09T08:11:37-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

Hey all - thought I'd check back in and show the results of my work. I implemented a grayscale morphological dilate and erode and applied it to a heightmap based on data from the Shuttle Radar Topography Mission, using the three.js WebGL library. http://edgeca.se/wp-content/uploads/2014/08/US_erode1 ...
by meetar
2013-06-11T09:13:47-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

Hello again – the Euclidean distance is working great for me, but as I've been learning more about distance transforms I'm increasingly curious about the ImageMagick implementation. I just found something in the docs which sounded familiar: The distance kernel is applied to the image so that each p ...
by meetar
2013-05-22T08:44:15-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

"Euclidean" looks perfect for my needs at the moment:

Code: Select all

convert test01.gif -negate -morphology Distance Euclidean:1,8\! -negate outbars2.gif
Image
by meetar
2013-05-21T19:58:52-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

This does seem to be exactly what I needed; amazing. Thanks for all the help!
by meetar
2013-05-14T18:11:18-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

Wow, thanks Fred; I see that this code is from your "morphology" script – I was trying to use that earlier today to replicate my Fx script. Is there any way you know of to use Morphology to do what you describe? I expect I'll need to hack something together myself, but this is an excellent starting p ...
by meetar
2013-05-14T16:16:29-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Re: Set a limit on per-pixel contrast?

That sounds good, but I must not be doing it correctly: convert in.gif -morphology Dilate Cross out.gif Input: http://gifl.be/test01.gif Output: http://gifl.be/test_dilate01.png I'm also not sure what you mean by "threshold the result to your given numeric value" -- I don't want to set an upper or ...
by meetar
2013-05-14T15:53:57-07:00
Forum: Developers
Topic: Set a limit on per-pixel contrast?
Replies: 12
Views: 13888

Set a limit on per-pixel contrast?

I'm working with elevation data, and I want to set a limit on the allowable contrast between pixels, ideally something numeric I can refer to later. I have an example working with Fx, which checks a basic plus-shaped kernel for a difference in value past some limit: #!/bin/bash runthis.sh convert in ...