[5041] in java-interest

home help back first fref pref prev next nref lref last post

Re: Image question...

daemon@ATHENA.MIT.EDU (Douglass Turner)
Fri Jan 26 18:32:49 1996

Date: Fri, 26 Jan 1996 11:03:21 -0800
To: Andrew (Rong Fong) Tian <andyt@MIT.EDU>
From: turner@apple.com (Douglass Turner)
Cc: java-interest@java.sun.com

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

home help back first fref pref prev next nref lref last post