public class Shape_Index_Map extends Object implements ij.plugin.filter.PlugInFilter
Modifier and Type | Field and Description |
---|---|
protected static ij.plugin.filter.GaussianBlur |
gaussianBlur |
protected ij.ImagePlus |
image |
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
Shape_Index_Map() |
Modifier and Type | Method and Description |
---|---|
static ij.process.ImageProcessor |
deriveX(ij.process.ImageProcessor ip) |
static ij.process.ImageProcessor |
deriveY(ij.process.ImageProcessor ip) |
static ij.process.ImageProcessor |
getShapeIndex(ij.process.ImageProcessor ip)
The formula is:
|
static ij.ImagePlus |
getShapeIndexMap(ij.ImagePlus image,
double gaussianBlurRadius) |
void |
run(ij.process.ImageProcessor ip)
This method is run when the current image was accepted.
|
int |
setup(String arg,
ij.ImagePlus image)
This method gets called by ImageJ / Fiji to determine
whether the current image is of an appropriate type.
|
protected ij.ImagePlus image
protected static ij.plugin.filter.GaussianBlur gaussianBlur
public int setup(String arg, ij.ImagePlus image)
setup
in interface ij.plugin.filter.PlugInFilter
arg
- can be specified in plugins.configimage
- is the currently opened imagepublic void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
ip
- is the current slice (we use the ImagePlus set above instead).public static ij.ImagePlus getShapeIndexMap(ij.ImagePlus image, double gaussianBlurRadius)
public static ij.process.ImageProcessor getShapeIndex(ij.process.ImageProcessor ip)
dnx_x + dny_y s = 2 / PI * arctan --------------------------------------- sqrt((dnx_x - dny_y)^2 + 4 dny_x dnx_y)where _x and _y are the x and y components of the partial derivatives of the normal vector of the surface defined by the intensities of the image.
n_x and n_y are the negative partial derivatives of the intensity, approximated by simple differences.
ip
- the source image processor.public static ij.process.ImageProcessor deriveX(ij.process.ImageProcessor ip)
public static ij.process.ImageProcessor deriveY(ij.process.ImageProcessor ip)
Copyright © 2015–2021 Fiji. All rights reserved.