[5054] in java-interest
Re: Image question...
daemon@ATHENA.MIT.EDU (Vitaly Promislov)
Sat Jan 27 06:41:52 1996
Date: Sat, 27 Jan 96 13:53:22 ???
From: vitaly@diogen.asc.rssi.ru (Vitaly Promislov)
To: turner@apple.com
Cc: java-interest@java.sun.com, andyt@MIT.EDU
>
> At 12:34 PM 1/9/96, Andrew (Rong Fong) Tian wrote:
> >Hi, I'm trying to implement a bunch of image processing methods(affine
> >transformation, warping, etc) with the Beta 2 image classes. I considered
> >writing them as subclasses of ImageFilter, along the line of CropImageFilter.
> >The problem I ran into was that the ImageFilter only allowed one direction
> >in terms of filtering the image. For example, if I want to scale an image,
> >the normal way would be to compute the new pixels by sampling the old
> >pixels. This requires the method to take as arguements the NEW pixels,
> >compute the old pixels, and modify the new pixels. But the filtering methods
> >in ImageFilter only take in the old pixels. This means that the new image
> >cannot have more pixels than the old image. Is there a way to further
> >generalize ImageFilter so that the filtering methods can be more flexible?
> >
> >I'm also looking at just getting the actual pixels of the original image and
> >modify the pixels by hand, then recreate the image with MemoryImageSource.
> >But I can't figure out how to get the array of pixels from an image. Can
> >someone give me a hint?
> >
> >I apologize if this isn't very clear...
> >
> >Thanks,
> >
> >Andy Tian
> >-
> >This message was sent to the java-interest mailing list
> >Info: send 'help' to java-interest-request@java.sun.com
>
> Hello Andy,
> Image processing and general image hacking is near and dear to my heart
> and I'm a java.newbie to boot. Did you get any help with this, I'll be
> needing to do analogous stuff in the near future.
>
> Cheers,
>
> Douglass Turner
> QuickTimeVR Web Master (qtvr.quicktime.apple.com)
>
> digital {
> ema: turner@apple.com
> web: qtvr.quicktime.apple.com/staff/PlanetDoug
> vox: 408.974.0484
> fax: 408.974.8414
> }
>
> analog {
> Douglass Turner
> Apple Computer, One Infinite Loop, MS: 301-3M
> Cupertino, California 95014 USA
> }
>
>
>
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
>
Hi.
I am either working on Image processing methods in Java. I met the same troubles
with ImageFilter class too. But obvious way to solve it It is implementing
such methods using the ImageProducer interface instead of directly subclassing
IamgeFilter class. Then you will get necessary flexebility.
Take a look to: http://diogen.asc.rssi.ru/funny.html
The FillImage class there do exectly any scaling for convex shape.
______________________________________________________________________
Vitaly Promislov
Astro Space Center, Russia e-mail: vitaly@diogen.asc.rssi.ru
fax: 095 333-23-78
Phone: 333-23-12
URL: http://diogen.asc.rssi.ru/Vitaly.html
----------------------------------------------------------------------
These are my opinions only, and do not reflect anything
about my employer, Astro Space Center of Russian Academy of Science.
------------------------------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com