public class AnisotropicFilterFunction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_FILTERS |
Constructor and Description |
---|
AnisotropicFilterFunction(FFTVolumeHandle fft,
VolumeOperator op) |
Modifier and Type | Method and Description |
---|---|
Volume3D[] |
computeAnisotropicFilteredVolume(Volume3D volume,
float low,
float high,
float hp_lower_level,
float hp_upper_level,
float smth,
int A,
float B,
float ri,
float a,
float lpUpper) |
Volume3D[][] |
computeStructureTensor(Volume3D vol,
int A,
float B,
float ri) |
static int |
filt_calc_Nk_I(int dimensions,
int k,
float[][] t_coeff)
Computes the orientation tensor
![]() ![]() ![]() |
void |
filt_gauss_relax_tensors(Volume3D[][] vol,
float a) |
static int |
filt_get_filt_dirs(int dimensions,
float[][] fd)
Computes the filter directions.
|
static int |
filt_get_n_filters(int dimensions) |
Volume3D |
filt_normalize_tensors(Volume3D[][] structureTensor,
int eig)
Normalizes the tensors and computes the tensor nor.
|
Volume3D[] |
filt_pre_enhance(Volume3D volume,
int A,
float B,
float ri,
float a,
float lpUpper)
Computes an array of filtered images.
|
VolumeOperator |
getVolumeOperator()
Returns the VolumeOperator of the filter.
|
void |
setShowStatus(boolean showStatus) |
void |
setThreadNumber(int number)
Method to limit the number of threads used by the FFT of the filter.
|
public static final int MAX_FILTERS
public AnisotropicFilterFunction(FFTVolumeHandle fft, VolumeOperator op)
public void setShowStatus(boolean showStatus)
public void setThreadNumber(int number)
number
- public void filt_gauss_relax_tensors(Volume3D[][] vol, float a)
public Volume3D[][] computeStructureTensor(Volume3D vol, int A, float B, float ri)
public static int filt_get_n_filters(int dimensions)
public static int filt_get_filt_dirs(int dimensions, float[][] fd)
dimensions
- the number of dimensionsfd
- the resultpublic static int filt_calc_Nk_I(int dimensions, int k, float[][] t_coeff)
dimensions
- the filter dimensionk
- the filter indext_coeff
- the orientation tensor.public Volume3D filt_normalize_tensors(Volume3D[][] structureTensor, int eig)
structureTensor
- the reference to the structure tensoreig
- if eig == 1 the maximal eigenvalue is used for normalization else the norm is performed using the tensor trace.public Volume3D[] filt_pre_enhance(Volume3D volume, int A, float B, float ri, float a, float lpUpper)
volume
- the volume to processA
- B
- ri
- a
- lpUpper
- low pass frequency.public Volume3D[] computeAnisotropicFilteredVolume(Volume3D volume, float low, float high, float hp_lower_level, float hp_upper_level, float smth, int A, float B, float ri, float a, float lpUpper)
public VolumeOperator getVolumeOperator()