-
Notifications
You must be signed in to change notification settings - Fork 12
Skeletonise wrapper
Richard Domander edited this page May 13, 2016
·
26 revisions
This page documents the wrapper class of the Skeletonize3D
plugin in BoneJ2. The plugin is used trough a wrapper instead of called directly to:
- Place it under the Plugins>BoneJ menu entry
- Provide custom functionality
The wrapper will call the Skeletonize3D plugin even though it still is very much in the ImageJ1 world. In the ideal case we would help @iarganda to convert the plugin into an Op, but currently we do not have the resources. This will lead into some differences in the implementation of this wrapper from the others. Details below.
- Menu path: Plugins>BoneJ>Skeletonise. Renamed from Skeletonise 3D in BoneJ1, because the plugin can be used for 2D images as well.
- Has a
@Parameter Dataset
for the input image because using an ImageJ1 class likeImagePlus
is likely to cause problems. Also there are pre-existing tools for converting fromDataset
to anImagePlus
. - No setup dialog
- If there is no input image
- Show an error dialog
- Abort the run
- If the input image can not be converted into an
ImagePlus
- Show an error dialog
- Abort the run
- If the input image is not 8-bit binary colour
- Show an error dialog
- Abort the run
- If the input image does not have exactly two or three spatial dimensions
- Show an error dialog
- Abort the run
- Creates an output image that shows the skeleton of the input image
- Converts the output image into type
Dataset
- Does not overwrite the input image
- Output image has the same calibration as input image
- The title of the output image shall be "Skeleton of <title of input image>"
####Future
- Since there's no setup dialog, where to put the Help-button? How to provide the help?
- If input image has an inverted LUT, the LUT of the output image must be inverted
- Usage reporting