DESY ACOP Beans Home

de.desy.acop.video.displayer.timage
Class TImageConverter

java.lang.Object
  extended by de.desy.acop.video.displayer.timage.TImageConverter

Deprecated. - use TImageConverter instead

public class TImageConverter
extends java.lang.Object

TINE Image <-> Java BufferedImage Converter.
Note: Draft implementation

Author:
mdavid

Constructor Summary
TImageConverter()
          Deprecated. Default constructor
 
Method Summary
static de.desy.tine.types.IMAGE parseBufferedImage(java.awt.image.BufferedImage src)
          Deprecated. TODO:
static de.desy.tine.types.IMAGE parseBufferedImage(java.awt.image.BufferedImage bi, de.desy.tine.types.IMAGE.FrameHeader frameHeader, de.desy.tine.types.IMAGE.SourceHeader sourceHeader)
          Deprecated. TODO: - resets aoi parameters - only for TYPE_INT_RGB/TYPE_INT_GRAY java images - fraHeader and srcHeader are in/out parameters; application developer will preset them and some fields may be changed inside method according to bufferedImage characteristics - bufferedImage should be "easily" converted to IMAGE, e.g.
 java.awt.image.BufferedImage parseTineImage(de.desy.tine.types.IMAGE timage, boolean aoiExpansion)
          Deprecated. Creates Java Image from TINE IMAGE
 java.awt.image.BufferedImage parseTineImage(de.desy.tine.types.IMAGE timage, boolean aoiExpansion, ColorMap colorMap)
          Deprecated. Creates Java Image from TINE IMAGE
 java.awt.image.BufferedImage parseTineImageNoClone(de.desy.tine.types.IMAGE timage, boolean aoiExpansion)
          Deprecated. Creates Java Image from TINE IMAGE.
 java.awt.image.BufferedImage parseTineImageNoClone(de.desy.tine.types.IMAGE timage, boolean aoiExpansion, ColorMap colorMap)
          Deprecated. Creates Java Image from TINE IMAGE without cloning the original image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TImageConverter

public TImageConverter()
Deprecated. 
Default constructor

Method Detail

parseTineImage

public java.awt.image.BufferedImage parseTineImage(de.desy.tine.types.IMAGE timage,
                                                   boolean aoiExpansion)
Deprecated. 
Creates Java Image from TINE IMAGE

Parameters:
timage - - a TINE IMAGE
aoiExpansion - - if truethe AOI Image should be surrounded by black pixels, otherwise not
Returns:
java Image

parseTineImage

public java.awt.image.BufferedImage parseTineImage(de.desy.tine.types.IMAGE timage,
                                                   boolean aoiExpansion,
                                                   ColorMap colorMap)
Deprecated. 
Creates Java Image from TINE IMAGE

Parameters:
timage - - a TINE IMAGE
aoiExpansion - - if truethe AOI Image should be surrounded by black pixels, otherwise not
colorMap - - colorMap to be used for conversion
Returns:
java BufferedImage

parseTineImageNoClone

public java.awt.image.BufferedImage parseTineImageNoClone(de.desy.tine.types.IMAGE timage,
                                                          boolean aoiExpansion)
Deprecated. 
Creates Java Image from TINE IMAGE.

Parameters:
timage - - a TINE IMAGE
aoiExpansion - - if truethe AOI Image should be surrounded by black pixels, otherwise not
Returns:
java Image
See Also:
parseTineImageNoClone(IMAGE, boolean, ColorMap)

parseTineImageNoClone

public java.awt.image.BufferedImage parseTineImageNoClone(de.desy.tine.types.IMAGE timage,
                                                          boolean aoiExpansion,
                                                          ColorMap colorMap)
Deprecated. 
Creates Java Image from TINE IMAGE without cloning the original image. This methods is much faster in comparison to parseTineImage(IMAGE, boolean, ColorMap), but be careful about thread safe opeartion: if the given image changes during the execution of this method, that could cause troubles.

Parameters:
timage - - a TINE IMAGE
aoiExpansion - - if truethe AOI Image should be surrounded by black pixels, otherwise not
colorMap - - colorMap to be used for conversion
Returns:
java BufferedImage

parseBufferedImage

public static de.desy.tine.types.IMAGE parseBufferedImage(java.awt.image.BufferedImage src)
Deprecated. 
TODO:

Parameters:
src -
Returns:
TINE Image

parseBufferedImage

public static de.desy.tine.types.IMAGE parseBufferedImage(java.awt.image.BufferedImage bi,
                                                          de.desy.tine.types.IMAGE.FrameHeader frameHeader,
                                                          de.desy.tine.types.IMAGE.SourceHeader sourceHeader)
Deprecated. 
TODO: - resets aoi parameters - only for TYPE_INT_RGB/TYPE_INT_GRAY java images - fraHeader and srcHeader are in/out parameters; application developer will preset them and some fields may be changed inside method according to bufferedImage characteristics - bufferedImage should be "easily" converted to IMAGE, e.g. datatype ARGB of BufferedImage will become datatype ARGB in TINE IMAGE (same for Gray8, 16, 24, RGB24...) - fields in fraHeader and srcHeader which cannot be affected by bufferedImage should NOT be touched - fields in fraHeader and srcHeader which are bound to properties (like width, height, ...) of bufferedImage should be changed to bufferedImage "fields" (ie. bufferedImage takes precedence over settings encoded in fraHeader and srcHeader) * - shall flag LOSSLESS in fraHeader be reset (because what's put in here is typically not some thing lossless from the image source on)?

Parameters:
bi - - input buffered image
frameHeader - - in/out TINE frame header
sourceHeader - - in/out TINE source header
Returns:


Copyright © 2010. All Rights Reserved.