|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.grelf.grip.Convolutions
public class Convolutions
Static methods for convolution and deconvolution. Class cannot be instantiated. There is a static field of class Kernel which can be set/got independently of running a convolution. It may be loaded from a file, set as a Guassian curve or obtained by sampling the image around a given point or blob.
Method Summary | |
---|---|
static java.awt.image.BufferedImage |
blurGaussian(java.awt.image.BufferedImage srcBim,
int nx,
int ny)
Do Gaussian blurring of the given image with 1D profiles of width nx (horizontal) and ny (vertical) and return the quite separate resulting new image. |
static ImageDouble |
blurGaussian(ImageDouble srcAccum,
int nx,
int ny)
Do Gaussian blurring of the given image with 1D profiles of width nx (horizontal) and ny (vertical) and return the quite separate resulting new image. |
static ImageInt |
blurGaussian(ImageInt srcAccum,
int nx,
int ny)
Do Gaussian blurring of the given image with 1D profiles of width nx (horizontal) and ny (vertical) and return the quite separate resulting new image. |
static void |
blurGaussian(ImFrame imf,
int nx,
int ny)
Do Gaussian blurring of the given image with 1D profiles of width nx (horizontal) and ny (vertical). |
static java.awt.image.BufferedImage |
convolve(java.awt.image.BufferedImage srcBim)
Convolve the given image with the current kernel and return the quite separate resulting new image. |
static ImageDouble |
convolve(ImageDouble srcAccum)
Convolve the given image with the current kernel and return the quite separate resulting new image. |
static ImageInt |
convolve(ImageInt srcAccum)
Convolve the given image with the current kernel and return the quite separate resulting new image. |
static void |
convolve(ImFrame imf)
Convolve the image with the current kernel. |
static void |
convolve(ImFrame imf,
Kernel aKernel)
Convolve the image with the given kernel, setting the kernel as the current kernel field of this class. |
static java.awt.image.BufferedImage |
convolve1D(java.awt.image.BufferedImage srcBim,
int[] horz,
int[] vert)
Convolve the given image with the given 1D arrays (horizontal and vertical - may be different) and return the quite separate resulting new image. |
static ImageDouble |
convolve1D(ImageDouble srcAccum,
double[] horz,
double[] vert)
Convolve the given image with the given 1D arrays (horizontal and vertical - may be different) and return the quite separate resulting new image. |
static ImageInt |
convolve1D(ImageInt srcAccum,
int[] horz,
int[] vert)
Convolve the given image with the given 1D arrays (horizontal and vertical - may be different) and return the quite separate resulting new image. |
static java.awt.image.BufferedImage |
deconvolve(java.awt.image.BufferedImage orgBim)
Deconvolve the image with the current kernel, using van Cittert's method. |
static ImageDouble |
deconvolve(ImageDouble originalAccum,
ImageDouble srcAccum,
int passNo)
Deconvolve the image with the current kernel, using van Cittert's method. |
static ImageInt |
deconvolve(ImageInt originalAccum,
ImageInt srcAccum,
int passNo)
Deconvolve the image with the current kernel, using van Cittert's method. |
static void |
deconvolve(ImFrame imf)
Deconvolve the image with the current kernel. |
static void |
deconvolve(ImFrame imf,
Kernel aKernel)
Deconvolve the image with the given kernel |
static void |
doOpInBackground(java.lang.String op,
ImFrame frame,
int width)
For particularly long operations, run them on a worker thread rather than clog up swing's event dispatch thread. |
static int |
getInitialHalfWidth()
|
static Kernel |
getKernel()
|
static javax.swing.ProgressMonitor |
getMonitor()
For developers to be able to setProgress () and test isCanceled () periodically and then close () when done. |
static int |
getNPasses()
Get number of passes set for deconvolution. |
static float |
getW()
Get value of w parameter set for deconvolution. |
static void |
setInitialHalfWidth(int aHalfWidth)
For the manual and automatic (star) setting of the kernel from an image. |
static void |
setKernel(Kernel aKernel)
|
static void |
setNPasses()
Set the number of passes of deconvolution to be applied. |
static void |
setW()
Set the w parameter for deconvolutions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Kernel getKernel()
public static void setKernel(Kernel aKernel)
public static int getInitialHalfWidth()
public static void setInitialHalfWidth(int aHalfWidth)
public static void convolve(ImFrame imf, Kernel aKernel)
public static void convolve(ImFrame imf)
public static java.awt.image.BufferedImage convolve(java.awt.image.BufferedImage srcBim)
public static ImageInt convolve(ImageInt srcAccum)
public static ImageDouble convolve(ImageDouble srcAccum)
public static void blurGaussian(ImFrame imf, int nx, int ny)
public static java.awt.image.BufferedImage blurGaussian(java.awt.image.BufferedImage srcBim, int nx, int ny)
public static ImageInt blurGaussian(ImageInt srcAccum, int nx, int ny)
public static ImageDouble blurGaussian(ImageDouble srcAccum, int nx, int ny)
public static java.awt.image.BufferedImage convolve1D(java.awt.image.BufferedImage srcBim, int[] horz, int[] vert)
public static ImageInt convolve1D(ImageInt srcAccum, int[] horz, int[] vert)
public static ImageDouble convolve1D(ImageDouble srcAccum, double[] horz, double[] vert)
public static int getNPasses()
public static float getW()
public static void setW()
public static void setNPasses()
public static void deconvolve(ImFrame imf, Kernel aKernel)
public static void deconvolve(ImFrame imf)
public static java.awt.image.BufferedImage deconvolve(java.awt.image.BufferedImage orgBim)
public static ImageInt deconvolve(ImageInt originalAccum, ImageInt srcAccum, int passNo)
public static ImageDouble deconvolve(ImageDouble originalAccum, ImageDouble srcAccum, int passNo)
public static void doOpInBackground(java.lang.String op, ImFrame frame, int width)
public static javax.swing.ProgressMonitor getMonitor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |