|
|
|
 |

January 31st, 2004, 03:17 PM
|
Corporal
|
|
Join Date: Jan 2004
Location: Berlin, Germany
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
This filter won't run on itself. It's a class that can be used in conjunction with the Java Advanced Imaging API (JAI). It would be quite easy to implement a filter that does the thing's you mentioned though. But it only works with BMP, GIF (decoder only), FlashPix (decoder only), JPEG, PNG, PNM, TIFF, and WBMP.
For running java programs you need to have at least the JRE installed. Set some enviroment variables and you can (almost) use it like a native executable.
|

January 31st, 2004, 04:17 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by BugRoger:
This filter won't run on itself. It's a class that can be used in conjunction with the Java Advanced Imaging API (JAI). It would be quite easy to implement a filter that does the thing's you mentioned though. But it only works with BMP, GIF (decoder only), FlashPix (decoder only), JPEG, PNG, PNM, TIFF, and WBMP.
For running java programs you need to have at least the JRE installed. Set some enviroment variables and you can (almost) use it like a native executable.
|
This sounds like more reading and experimenting into Java than I wanted to do. I would be running on a linux so raw java code should run fine. Could I ask you to whip up something that works on PNM files to blur the entire image except for 255/255/255 44/135/195 195/87/44 ?
Examples of the maps Im working with are at
http://www.techno-mage.com/~dominion...s2/RandomMaps/
And you can email me as gandalf@ that site or community.net (or a dozen others) 
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

January 31st, 2004, 05:53 PM
|
Corporal
|
|
Join Date: Jan 2004
Location: Berlin, Germany
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Before I spend my day working on Java (again) may I suggest something else? Try ImageMagick. It might be just what you are looking for. If you're running Linux it's probably already installed... I'm not very experienced in using it but it is *very* powerful. I use it for on the fly generation of thumbnails on my webserver.
I browsed the Online docu and there is a blur filter and an option to select a specific set of colors. I haven't tried it but it seems like this should work.
|

January 31st, 2004, 05:59 PM
|
Private
|
|
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
If you can point me to a site that explains the PNM format and a sample image, I can give it a go.
|

January 31st, 2004, 07:21 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Joe Bedurndurn:
If you can point me to a site that explains the PNM format and a sample image, I can give it a go.
|
Targa is what the game uses (.tga format). The PNM is just a passthru on its way to JPG (I couldnt find a tga2jpg converter so I go tga2ppg then ppg2jpg)
The JPG exists for web viewing and so that WebMagick can make thumbnails (which does use imagemagick to do it). I did see that ImageMagick had a blur switch but didnt see where I could hold 255/255/255 white aside. Maybe something where I could copy the white pixels to another file then merge it back after the blur?
Of course these are also all work-arounds for the old DomMap program which is in C source code if anyone is interested.
[ January 31, 2004, 17:22: Message edited by: Gandalf Parker ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

January 31st, 2004, 11:48 PM
|
Corporal
|
|
Join Date: Jan 2004
Location: Berlin, Germany
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
If I'm correct you can use the map switch. Give it a color map file to select specific colors (I'm totally clueless about the file format though). Pass that output to the matte channel. You might have to create a temp file for that.
In the docs there's an example about using a matte channel to filter only certain areas of the image.
|

February 24th, 2004, 12:29 AM
|
Private
|
|
Join Date: Feb 2004
Location: USA
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Gandalf Parker:
Of course these are also all work-arounds for the old DomMap program which is in C source code if anyone is interested.
|
Gandalf,
Please send me the source code when you get a chance. I'd like to take a look at it.
I'm a bit late to this party. Why are we looking for a blur filter?
gladestrider
__________________
The early bird gets the worm, but the second mouse gets the cheese.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|