org.shapelogic.imageutil
Class ImageUtil

java.lang.Object
  extended by org.shapelogic.imageutil.ImageUtil

public class ImageUtil
extends java.lang.Object

Utility class for images.

Author:
Sami Badawi

Constructor Summary
ImageUtil()
           
 
Method Summary
static SLImage runPluginFilterOnBufferedImage(java.lang.String fileName, ImageOperation plugInFilter)
           
static SLImage runPluginFilterOnBufferedImage(java.lang.String fileName, ImageOperation plugInFilter, java.lang.String arg)
          Opens an image and run a PlugInFilter on it.
static SLImage runPluginFilterOnImage(java.lang.String fileName, ImageOperation plugInFilter)
           
static SLImage runPluginFilterOnImage(java.lang.String fileName, ImageOperation plugInFilter, java.lang.String arg)
          Opens an image and run a PlugInFilter on it.
static ij.process.ImageProcessor runPluginFilterOnImage(java.lang.String fileName, ij.plugin.filter.PlugInFilter plugInFilter)
          Opens an image and run a PlugInFilter on it.
static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image, int newModelId)
          Crate any subclass of Image to a BufferedImage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

runPluginFilterOnImage

public static ij.process.ImageProcessor runPluginFilterOnImage(java.lang.String fileName,
                                                               ij.plugin.filter.PlugInFilter plugInFilter)
Opens an image and run a PlugInFilter on it.


runPluginFilterOnImage

public static SLImage runPluginFilterOnImage(java.lang.String fileName,
                                             ImageOperation plugInFilter,
                                             java.lang.String arg)
Opens an image and run a PlugInFilter on it.


runPluginFilterOnImage

public static SLImage runPluginFilterOnImage(java.lang.String fileName,
                                             ImageOperation plugInFilter)

runPluginFilterOnBufferedImage

public static SLImage runPluginFilterOnBufferedImage(java.lang.String fileName,
                                                     ImageOperation plugInFilter,
                                                     java.lang.String arg)
Opens an image and run a PlugInFilter on it.


runPluginFilterOnBufferedImage

public static SLImage runPluginFilterOnBufferedImage(java.lang.String fileName,
                                                     ImageOperation plugInFilter)

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image,
                                                           int newModelId)
Crate any subclass of Image to a BufferedImage.

Parameters:
image - input
newModelId - e.g. BufferedImage.TYPE_INT_RGB
Returns:


Copyright © 2009. All Rights Reserved.