[4627] in java-interest
Image question...
daemon@ATHENA.MIT.EDU (Andrew (Rong Fong) Tian)
Tue Jan 9 17:28:08 1996
From: Andrew (Rong Fong) Tian <andyt@MIT.EDU>
To: java-interest@java.sun.com
Date: Tue, 09 Jan 1996 15:34:29 EST
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