io.out
Class SkeletonToImageWriter
java.lang.Object
io.out.SkeletonToImageWriter
public class SkeletonToImageWriter
- extends java.lang.Object
This class provides functionalities to save BufferedImages or SkeletonObjects
to file, using java's built-in image/io.
|
Method Summary |
static void |
write(java.awt.image.BufferedImage bimg,
java.lang.String filename)
save the specified bufferedImage to the specified location. |
static void |
write(SkeletonObject obj,
java.lang.String filename)
create an image from the specified skeleton object and save the result to
the specified location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkeletonToImageWriter
public SkeletonToImageWriter()
write
public static void write(java.awt.image.BufferedImage bimg,
java.lang.String filename)
throws java.io.IOException
- save the specified bufferedImage to the specified location.
- Parameters:
bimg - the bufferedImage to be savedfilename - the filename where to save the image
- Throws:
java.io.IOException - if the file could not be saved
write
public static void write(SkeletonObject obj,
java.lang.String filename)
throws java.io.IOException,
InvalidSkeletonException
- create an image from the specified skeleton object and save the result to
the specified location.
- Parameters:
obj - the skeleton object to be saved as imagefilename - the filename where to save the result image
- Throws:
java.io.IOException - if the image could not be saved
InvalidSkeletonException - if the skeleton is not valid