|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ImageWrangler
| Field Summary | |
java.awt.image.ConvolveOp |
blur
A ConvolveOp object for blurring. |
java.awt.image.ConvolveOp |
edge
A ConvolveOp object for finding edges. |
| Constructor Summary | |
ImageWrangler(int _kWidth,
int _kHeight,
int[] masks)
This has a bunch of utilities for going between images and arrays and for taking advantage of native convolveOps for edge detection and blur.. |
|
| Method Summary | |
void |
arrayFromImage(java.awt.image.BufferedImage inImage,
int[] outPixis)
You give me an image and some pixels and I will transfer the image into the array. |
void |
arrayFromImageWithAlpha(java.awt.image.BufferedImage inImage,
int[] pixis)
|
void |
blurArray(int[] pixis)
|
java.awt.image.BufferedImage |
blurArrayToImage(int[] pixis)
You give me an array of pixels, I give you them back blurred in an image. |
void |
blurImage(java.awt.image.BufferedImage inImage,
java.awt.image.BufferedImage outImage)
You give me an image and I will blur it and return it in your destination image |
java.awt.image.BufferedImage |
edge(int[] myArray)
You give me an array of pixels, I find the edges and give it back in an image |
java.awt.image.BufferedImage |
imageFromArray(int[] pixis)
You give me an array of pixels, I give you back and image. |
void |
imageFromArray(int[] pixis,
java.awt.image.BufferedImage outImage)
You give me an array of pixels, and the image you want them returned in and I will blur them. |
java.awt.image.BufferedImage |
imageWithAlphaFromArray(int[] pixis)
You give me an array, I give you back an image with Alpha. |
void |
imageWithAlphaFromArray(int[] pixis,
java.awt.image.BufferedImage outImage)
You give me an image with Alpha, I give you back an array. |
void |
makePictureFile(java.awt.image.BufferedImage bi,
java.lang.String pathname,
java.lang.String filename,
float quality,
int threshold)
You give me an image and I will encode it and write it to a file. |
void |
setBlur(int size)
Sets the degree of blur. |
void |
setEdge(float[] matrix,
int size)
Set up the edge detection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.awt.image.ConvolveOp blur
public java.awt.image.ConvolveOp edge
| Constructor Detail |
public ImageWrangler(int _kWidth,
int _kHeight,
int[] masks)
| Method Detail |
public void setEdge(float[] matrix,
int size)
public void setBlur(int size)
public void blurArray(int[] pixis)
public java.awt.image.BufferedImage blurArrayToImage(int[] pixis)
public java.awt.image.BufferedImage edge(int[] myArray)
public void imageFromArray(int[] pixis,
java.awt.image.BufferedImage outImage)
public java.awt.image.BufferedImage imageFromArray(int[] pixis)
public void imageWithAlphaFromArray(int[] pixis,
java.awt.image.BufferedImage outImage)
public java.awt.image.BufferedImage imageWithAlphaFromArray(int[] pixis)
public void blurImage(java.awt.image.BufferedImage inImage,
java.awt.image.BufferedImage outImage)
public void arrayFromImage(java.awt.image.BufferedImage inImage,
int[] outPixis)
public void arrayFromImageWithAlpha(java.awt.image.BufferedImage inImage,
int[] pixis)
public void makePictureFile(java.awt.image.BufferedImage bi,
java.lang.String pathname,
java.lang.String filename,
float quality,
int threshold)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||