public class Arithmetics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Arithmetics.Convolve
We convolve the image on the first command line argument with increasing
kernel size.
|
static class |
Arithmetics.Op |
| Constructor and Description |
|---|
Arithmetics() |
| Modifier and Type | Method and Description |
|---|---|
static MImageHDU |
between(MImageHDU a1,
MImageHDU a2,
double w)
Returns balanced data in between two Image HDU such that the weight
factor is applied to the first data and (1-weight) is applied to the
second data and the sum is returned.
|
static float[] |
convolve(float[] adu,
ArrayLayout ladu,
float[] kernel,
ArrayLayout lkernel)
Convolves image data with a float matrix.
|
static float[] |
convolve(float[] adu,
ArrayLayout ladu,
float[] kernel,
ArrayLayout lkernel,
int edge)
Convolves image data with a float matrix.
|
static List<MImageHDU> |
equalSize(List<MImageHDU> all)
Takes a list of image hdu and returns only those that have data and match
the first HDU in size.
|
static List<MImageHDU> |
equalSize(List<MImageHDU> all,
ArrayLayout size)
Takes a list of image hdu and returns only those that have data of the
specified size.
|
static float[] |
getEqualWeightKernel(int xhalf,
int yhalf)
Returns a kernel that is normalized to 1, with all matrix elements
identical value.
|
public static List<MImageHDU> equalSize(List<MImageHDU> all)
all - size - If null, first image HDU is used for size.public static List<MImageHDU> equalSize(List<MImageHDU> all, ArrayLayout size)
all - size - May not be nullpublic static final MImageHDU between(MImageHDU a1, MImageHDU a2, double w) throws BasicFitsException
BasicFitsExceptionpublic static float[] convolve(float[] adu,
ArrayLayout ladu,
float[] kernel,
ArrayLayout lkernel)
throws BasicFitsException
adu - The image data as a float arrayladu - The geometry of the imagekernel - The kernel as a float arraylkernel - The geometry of the kernelBasicFitsExceptionpublic static float[] convolve(float[] adu,
ArrayLayout ladu,
float[] kernel,
ArrayLayout lkernel,
int edge)
throws BasicFitsException
adu - The image data as a float arrayladu - The geometry of the imagekernel - The kernel as a float arraylkernel - The geometry of the kerneledge - Treatment of edge pixel: Zero or original (0/1)BasicFitsExceptionpublic static float[] getEqualWeightKernel(int xhalf,
int yhalf)
xhalf - Half-size of the kernel in xyhalf - Half-size of the kernel in y