DESY ACOP Beans Home

de.desy.acop.video.timageio
Class TBufferedImage

java.lang.Object
  extended by de.desy.acop.video.timageio.TBufferedImage

public class TBufferedImage
extends java.lang.Object

The TBufferedImage comprised of a TImageMetadata of image metadata and a BufferedImage of image data.

Author:
David Melkumyan, DESY Zeuthen

Constructor Summary
TBufferedImage(java.awt.image.BufferedImage bufferedImage, TImageMetadata tiMetadata)
          Constructs a TBufferedImage from BufferedImage and TImageMetadata.
TBufferedImage(de.desy.tine.types.IMAGE ti)
          Creates TBufferedImage instance from Tine IMAGE (in 'archival' mode).
TBufferedImage(de.desy.tine.types.IMAGE ti, ColorMap colorMap, boolean normalize, boolean aoiExpansion)
          Creates TBufferedImage instance from Tine IMAGE (in 'archival' mode).
 
Method Summary
static boolean containsAOI(de.desy.tine.types.IMAGE ti)
          Returns true if TINE image contains AOI, otherwise false.
 java.awt.image.BufferedImage getBufferedImage()
          Returns Java BufferedImage with an accessible buffer of image data
 TImageMetadata getMetadata()
          Returns image metadata (non-image data) associated with TINE images.
static java.util.Hashtable<java.lang.String,java.lang.Object> getProperties(java.awt.image.BufferedImage bi)
          Deprecated.  
static boolean isSupported(int format)
          Returns true if TINE image format is supported.
 void setBufferedImage(java.awt.image.BufferedImage image)
           
 void setMetadata(TImageMetadata metadata)
          Sets the TINE image metadata
static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti)
          Creates BufferedImage from Tine IMAGE in 'archival' mode.
static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti, ColorMap colorMap, boolean normalize, boolean aoiExpansion)
          Creates BufferedImage from Tine IMAGE in 'archival'/'export' mode.
static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti, ColorMap colorMap, boolean normalize, int min, int max, boolean aoiExpansion)
           
 de.desy.tine.types.IMAGE toIMAGE()
          Represents TBufferedImage as TINE image
 de.desy.tine.types.IMAGE toIMAGE(boolean rejectNonArchival)
          Represents TBufferedImage as TINE image
static de.desy.tine.types.IMAGE toIMAGE(java.awt.image.BufferedImage bi)
          Converts Java BufferedImage to TINE image
static de.desy.tine.types.IMAGE toIMAGE(java.awt.image.BufferedImage bi, boolean rejectNonArchival)
          Converts Java BufferedImage to TINE image
static java.awt.image.BufferedImage toImageRGB(java.awt.image.BufferedImage src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TBufferedImage

public TBufferedImage(java.awt.image.BufferedImage bufferedImage,
                      TImageMetadata tiMetadata)
Constructs a TBufferedImage from BufferedImage and TImageMetadata.

Parameters:
bufferedImage - - Java BufferedImage
tiMetadata - - TImageMetadata
See Also:
TImageMetadata

TBufferedImage

public TBufferedImage(de.desy.tine.types.IMAGE ti)
Creates TBufferedImage instance from Tine IMAGE (in 'archival' mode).

Parameters:
ti - - TINE Image

TBufferedImage

public TBufferedImage(de.desy.tine.types.IMAGE ti,
                      ColorMap colorMap,
                      boolean normalize,
                      boolean aoiExpansion)
Creates TBufferedImage instance from Tine IMAGE (in 'archival' mode).

Parameters:
ti - - TINE Image
Method Detail

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage()
Returns Java BufferedImage with an accessible buffer of image data

Returns:
BufferedImage

setBufferedImage

public void setBufferedImage(java.awt.image.BufferedImage image)

getMetadata

public TImageMetadata getMetadata()
Returns image metadata (non-image data) associated with TINE images.

Returns:
TImageMetadata

setMetadata

public void setMetadata(TImageMetadata metadata)
Sets the TINE image metadata

Parameters:
metadata - - TINE image metadata

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti)
Creates BufferedImage from Tine IMAGE in 'archival' mode.

Parameters:
ti - - input Tine IMAGE
Returns:
Java Buffered Image

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti,
                                                           ColorMap colorMap,
                                                           boolean normalize,
                                                           boolean aoiExpansion)
Creates BufferedImage from Tine IMAGE in 'archival'/'export' mode.

Parameters:
ti - - input Tine IMAGE
colorMap - - apply color map
normalize - - apply the histogram equalization will be applied
aoiExpansion - - apply the AOI expansion
Returns:
Java Buffered Image

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(de.desy.tine.types.IMAGE ti,
                                                           ColorMap colorMap,
                                                           boolean normalize,
                                                           int min,
                                                           int max,
                                                           boolean aoiExpansion)

toIMAGE

public static de.desy.tine.types.IMAGE toIMAGE(java.awt.image.BufferedImage bi)
Converts Java BufferedImage to TINE image

Parameters:
bi - - Java BufferedImage with/without TINE image metadata
Returns:
TINE image

toIMAGE

public static de.desy.tine.types.IMAGE toIMAGE(java.awt.image.BufferedImage bi,
                                               boolean rejectNonArchival)
Converts Java BufferedImage to TINE image

Parameters:
bi - - Java BufferedImage with/without TINE image metadata
rejectNonArchival - - if true and bi does not contain TINE image metadata throws IllegalArgumentException
Returns:
TINE image

toIMAGE

public de.desy.tine.types.IMAGE toIMAGE()
Represents TBufferedImage as TINE image

Returns:
TINE image

toIMAGE

public de.desy.tine.types.IMAGE toIMAGE(boolean rejectNonArchival)
Represents TBufferedImage as TINE image

Parameters:
rejectNonArchival - - if true and TBufferedImage does not contain TINE image metadata throws IllegalArgumentException
Returns:
TINE image

isSupported

public static boolean isSupported(int format)
Returns true if TINE image format is supported.

Parameters:
format - - an Image Format
Returns:
true if image format is supported, otherwise - false
Throws:
java.lang.IllegalArgumentException - if format is invalid

containsAOI

public static boolean containsAOI(de.desy.tine.types.IMAGE ti)
Returns true if TINE image contains AOI, otherwise false.

Parameters:
ti - - TINE image
Returns:
true if AOI is present in the image, otherwise false

getProperties

public static java.util.Hashtable<java.lang.String,java.lang.Object> getProperties(java.awt.image.BufferedImage bi)
Deprecated. 

Parameters:
bi - - BufferedImage
Returns:
always null (!!!) while BufferedImage#getPropertyNames() returns always null
See Also:
BufferedImage#getPropertyNames()

toImageRGB

public static java.awt.image.BufferedImage toImageRGB(java.awt.image.BufferedImage src)


Copyright © 2010. All Rights Reserved.