Bender/Documentation/2.0/Modules/SimpleWorkflow: Difference between revisions
m (Copied from Bender/Documentation/1.0/Modules/Workflow) |
(Transform absolute reference of bender modules links to relative: Bender/Documentation/1.0/Modules/ -> ../) |
||
Line 1: | Line 1: | ||
= Introduction = | = Introduction = | ||
The [[ | The [[../Workflow|Workflow]] module guides the user step-by-step into transforming a volume using a [http://en.wikipedia.org/wiki/Skeletal_animation rigging, skinning and posing] technique. | ||
Typically, the anatomical pose of a voxelized model is limited by the imaging device used to acquire the underlying data, e.g., MRI and CT scanners have narrow entries. Changing the pose of an already acquired voxelized anatomical model enables new processing of human anatomy in a wide variety of poses. The workflow module allows an operator to specify a rigging that represents the anatomical pose of an existing voxel model, manipulate that rigging into a different anatomical pose, and then generate a new voxelized model that represents the original model resampled into that new position. | Typically, the anatomical pose of a voxelized model is limited by the imaging device used to acquire the underlying data, e.g., MRI and CT scanners have narrow entries. Changing the pose of an already acquired voxelized anatomical model enables new processing of human anatomy in a wide variety of poses. The workflow module allows an operator to specify a rigging that represents the anatomical pose of an existing voxel model, manipulate that rigging into a different anatomical pose, and then generate a new voxelized model that represents the original model resampled into that new position. | ||
Line 108: | Line 107: | ||
* '''Skin label(s)''': Choose the label(s) that will be merged into '''Skin Label'''. They are automatically selected from the input volume color table (set in [[#A.29_Labelmap|A) Labelmap]]) by looking for color names containing the string "skin". | * '''Skin label(s)''': Choose the label(s) that will be merged into '''Skin Label'''. They are automatically selected from the input volume color table (set in [[#A.29_Labelmap|A) Labelmap]]) by looking for color names containing the string "skin". | ||
* '''Bone label''': Select the new label value of '''Skin Label(s)'''. | * '''Bone label''': Select the new label value of '''Skin Label(s)'''. | ||
* '''Go To Change Label''': Open the [[ | * '''Go To Change Label''': Open the [[../ChangeLabel|Change Label]] module to merge other labels together or simply change label values. | ||
|valign="top"|[[Image:AdjustPanel-1.0.png|thumb|550px|Adjust labelmap panel]][[Image:BenderWorkflow-1B-MergeLabels.png|thumb|550px|1-B)Merge labels]] | |valign="top"|[[Image:AdjustPanel-1.0.png|thumb|550px|Adjust labelmap panel]][[Image:BenderWorkflow-1B-MergeLabels.png|thumb|550px|1-B)Merge labels]] | ||
Line 159: | Line 158: | ||
===A) Armatures === | ===A) Armatures === | ||
Manually create or load an existing armature to fit on the bones of the volume to pose. The user is redirected to the [[ | Manually create or load an existing armature to fit on the bones of the volume to pose. The user is redirected to the [[../Armatures|Armatures]] module for manually editing (e.g. create/edit/remove a bone segment). | ||
The armature (either created or loaded) is the interface between the user and the transformations needed to pose the volume models. | The armature (either created or loaded) is the interface between the user and the transformations needed to pose the volume models. | ||
'''Note:''' Once completed, the armature rest positions should not be changed since it would require all the following computations to be updated as well. It is therefore highly encouraged to save the created armature in order to be able to restore it with '''Load armature from model'''. | '''Note:''' Once completed, the armature rest positions should not be changed since it would require all the following computations to be updated as well. It is therefore highly encouraged to save the created armature in order to be able to restore it with '''Load armature from model'''. | ||
Line 165: | Line 164: | ||
'''Simple workflow''' | '''Simple workflow''' | ||
* '''Toggle Skin visibility''': Same as '''Toggle Skin Visibility''' in [[#B.29_Skin_model_maker|Skin model maker]]. When dropping bones, bones are placed in 3D where the user click (X,Y) and at the depth (Z) of the closest surface model under the mouse cursor. It is advised to hide skin model when placing armature bones because you want them on the bones surface and not the skin surface . | * '''Toggle Skin visibility''': Same as '''Toggle Skin Visibility''' in [[#B.29_Skin_model_maker|Skin model maker]]. When dropping bones, bones are placed in 3D where the user click (X,Y) and at the depth (Z) of the closest surface model under the mouse cursor. It is advised to hide skin model when placing armature bones because you want them on the bones surface and not the skin surface . | ||
* '''Load armature from model''': Open a dialog window to load an armature from a model file. See [[ | * '''Load armature from model''': Open a dialog window to load an armature from a model file. See [[../Armatures|Armatures]] module for further details. | ||
* '''Go To Armature Module''': Open the [[ | * '''Go To Armature Module''': Open the [[../Armatures|Armatures]] module to manually edit the armature by adding, moving, deleting bones in Rest mode. Armature display properties such as X-Ray mode, opacity, color or shape can also be modified. | ||
| valign="top"| | | valign="top"| | ||
Line 182: | Line 181: | ||
Before computing the weights, the skinning volume must first be extracted. The skinning volume represents what bone influence the most a given voxel. For each voxel a unique bone index is assigned. | Before computing the weights, the skinning volume must first be extracted. The skinning volume represents what bone influence the most a given voxel. For each voxel a unique bone index is assigned. | ||
This means that if we were to use binary weights (see [[ | This means that if we were to use binary weights (see [[../ComputeArmatureWeight|Compute Armature Weight]]) , a given voxel would rotate similarly to its associated bone in the skinned volume. Because the skinning might not produces perfect results (some voxels might be assigned the wrong bones), and because the skinned volume drives the weight computation, it can be useful to tweak the output skinned volume, most notably in joints area. The [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Editor Editor] module can be used to edit the labelmap. | ||
'''Simple workflow''' | '''Simple workflow''' | ||
Line 190: | Line 189: | ||
* '''Skin volume''': Compute the skinned volume. The output skinned volume is a labelmap where each voxel of the input '''Volume''' is associated with a bone of the input '''Armature''' (voronoi style algorithm). | * '''Skin volume''': Compute the skinned volume. The output skinned volume is a labelmap where each voxel of the input '''Volume''' is associated with a bone of the input '''Armature''' (voronoi style algorithm). | ||
'''Advanced workflow''' | '''Advanced workflow''' | ||
* '''Go To Volume Skinning Module''': Open the [[ | * '''Go To Volume Skinning Module''': Open the [[../VolumeSkinning|Volume Skinning]] module for advanced properties. | ||
===B) Compute armature weight=== | ===B) Compute armature weight=== | ||
Line 203: | Line 202: | ||
* '''Armature''': Select the armature associated with '''Volume'''. It should be the same as in [[#A.29_Volume_skinning|A) Volume Skinning]]. | * '''Armature''': Select the armature associated with '''Volume'''. It should be the same as in [[#A.29_Volume_skinning|A) Volume Skinning]]. | ||
* '''Input skinned volume''': Select the skinned volume to use for its bone regions. It should be the (possibly edited) volume associated with the '''Volume''' and the '''Armature''' generated in [[#A.29_Volume_skinning|A) Volume Skinning]]. | * '''Input skinned volume''': Select the skinned volume to use for its bone regions. It should be the (possibly edited) volume associated with the '''Volume''' and the '''Armature''' generated in [[#A.29_Volume_skinning|A) Volume Skinning]]. | ||
* '''Go To Compute Armature Weights module''': Open the [[ | * '''Go To Compute Armature Weights module''': Open the [[../ComputeArmatureWeight|Compute Armature Weight]] module to further refine the computation of the weights by, for example, restricting it to a given bone or changing the downsampling ratio. | ||
| valign="top"| | | valign="top"| | ||
Line 226: | Line 225: | ||
* '''Input surface''': Select the input surface that will have the weight evaluated on. | * '''Input surface''': Select the input surface that will have the weight evaluated on. | ||
* '''Weight images folder''': Select the folder containing the weight image files. | * '''Weight images folder''': Select the folder containing the weight image files. | ||
* '''Go To Evaluate Surface Weight module''': Open the [[ | * '''Go To Evaluate Surface Weight module''': Open the [[../EvalWeight|Evaluate Weight]] module to access further parameters. | ||
===B) Armatures=== | ===B) Armatures=== | ||
Pose the armature by applying rotations to armature bones. You can directly pose the armature from the 3D view, if needed the [[ | Pose the armature by applying rotations to armature bones. You can directly pose the armature from the 3D view, if needed the [[../Armatures|Armatures]] module can provide more controls. | ||
'''Note:''' At this point '''only the ''Pose''''' of the armature can be edited, if the "Rest" mode of the armature is changed, the skinned volume and bone weights must be recomputed. | '''Note:''' At this point '''only the ''Pose''''' of the armature can be edited, if the "Rest" mode of the armature is changed, the skinned volume and bone weights must be recomputed. | ||
'''Simple workflow''' | '''Simple workflow''' | ||
* '''Go Armature module''': Open the [[ | * '''Go Armature module''': Open the [[../Armatures|Armatures]] module to further control the armature and its posing (e.g. reset the current pose to its originals rest value). | ||
===C) Pose surface=== | ===C) Pose surface=== | ||
Line 248: | Line 247: | ||
* '''Input surface''': Select the input surface to transform with the armature pose. | * '''Input surface''': Select the input surface to transform with the armature pose. | ||
* '''Weight images folder''': Select the folder where the weight image files are. | * '''Weight images folder''': Select the folder where the weight image files are. | ||
* '''Go To Pose Surface module''': Open the [[ | * '''Go To Pose Surface module''': Open the [[../PoseSurface|Pose Surface]] module to choose the weight blending mode or decide whether to use the evaluated weights or not. | ||
| valign="top"| | | valign="top"| | ||
Line 271: | Line 270: | ||
* '''Armature''': Select the posed input armature. | * '''Armature''': Select the posed input armature. | ||
* '''Weight images folder''': Select the folder where the weight image files are. | * '''Weight images folder''': Select the folder where the weight image files are. | ||
* '''Go To Pose Labelmap Module''': Open the [[ | * '''Go To Pose Labelmap Module''': Open the [[../PoseLabelmap|Pose Labelmap]] module to tweak some parameters such as the '''Maximum radius''' to speed up the computation. | ||
| valign="top"| | | valign="top"| | ||
Line 279: | Line 278: | ||
= Similar Modules = | = Similar Modules = | ||
* Used modules | * Used modules | ||
** Bender modules: [[ | ** Bender modules: [[../Armatures|Armatures]], [[../ChangeLabel|Change Label]], [[../ComputeArmatureWeight|Compute Armature Weight]], [[../PoseSurface|Pose Surface]], [[../PoseLabelmap|Pose Labelmap]], [[../VolumeSkinning|Volume Skinning]] | ||
** Slicer modules: [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/GrayscaleModelMaker Grayscale Model Maker], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Models Models], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/ModelMaker Models Maker], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Volumes Volumes], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/VolumeRendering Volume Rendering] | ** Slicer modules: [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/GrayscaleModelMaker Grayscale Model Maker], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Models Models], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/ModelMaker Models Maker], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Volumes Volumes], [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/VolumeRendering Volume Rendering] | ||
= Developer Information = | = Developer Information = | ||
This module is a Python script module that can be manually edited for custom behavior (even in the installed version of Bender). | This module is a Python script module that can be manually edited for custom behavior (even in the installed version of Bender). |
Revision as of 14:42, 17 April 2013
Introduction
The Workflow module guides the user step-by-step into transforming a volume using a rigging, skinning and posing technique.
Typically, the anatomical pose of a voxelized model is limited by the imaging device used to acquire the underlying data, e.g., MRI and CT scanners have narrow entries. Changing the pose of an already acquired voxelized anatomical model enables new processing of human anatomy in a wide variety of poses. The workflow module allows an operator to specify a rigging that represents the anatomical pose of an existing voxel model, manipulate that rigging into a different anatomical pose, and then generate a new voxelized model that represents the original model resampled into that new position.
This module applies to voxelized models the Skeletal animation technique initially conceived for surfaces.
Details
Author: Julien Finet, Kitware
Contributor #1: Johan Andruejol, Kitware
Acknowledgements: This work is supported by the Air Force Research Laboratories.
Contact: Julien Finet
Use Cases
Tutorials
Links to tutorial sections:
1-A) Labelmap -> 0:00 |
Parameters
Advanced properties
The Advanced properties can be shown or hidden by clicking on the expanding button.
Volume renderThe Volume render section can volume render intermediate or final volume/labelmap for verification.
|
1) Adjust labelmap
The Adjust labelmap is the first step of the workflow. The user selects here the volume to pose and can optionally prepare the volume before any further computation is applied.
A) LabelmapThis section makes sure the input labelmap has the right color table associated with it and is in the right coordinate system. Simple workflow
Advanced workflow
B) Merge labelsThis section provides the functionality of merging the bones labels and the skin labels of the input labelmap to ease the visualization/usability of the bones and the skin that often have different labels in the input 'raw' labelmap. Some labelmaps can have different labels for representing bones (e.g. bone marrow, bone cancellous, skull...). The Bender workflow handles only 1 label for the bones and 1 label for the skin. It is important to merge those similar labels into a unique label (1 for the bones, 1 for the skin). Simple workflow
Advanced workflow
|
2) Extract bone and skin
The 2) Extract bone and skin page creates the bone and skin surface models to interactively control the posing.
A) Bone model makerThis section extracts the surface of the bone label in the input labelmap volume. If there is more than 1 bone label, you can use Merge labels to merge them into a unique label. Simple workflow
Advanced workflow
B) Skin model makerThis section extracts the surface of the skin label in the input labelmap volume. The algorithm is different than Bone model maker because it solely needs the information of the background label. It creates an outer surface of the Foreground labels (all the labels that are not "Background"). Simple workflow
Advanced workflow
|
3) Create armature (rigging)
This section creates the rig of the volume to pose. Note: When opening this page, the view will automatically switch to 3D Only to help creating/visualizing the armature.
A) ArmaturesManually create or load an existing armature to fit on the bones of the volume to pose. The user is redirected to the Armatures module for manually editing (e.g. create/edit/remove a bone segment). The armature (either created or loaded) is the interface between the user and the transformations needed to pose the volume models. Note: Once completed, the armature rest positions should not be changed since it would require all the following computations to be updated as well. It is therefore highly encouraged to save the created armature in order to be able to restore it with Load armature from model. Simple workflow
|
4) Compute weights (skinning)
The Compute weights section assigns a weight for each voxel of the input volume. The weights represent how much a voxel is influenced by a bone. It is later used when posing the volume and computing the unique transform to apply at a voxel (by interpolating the influencing bones transforms).
Note: When opening this page, the view switches to Four Up.
A) Volume skinningBefore computing the weights, the skinning volume must first be extracted. The skinning volume represents what bone influence the most a given voxel. For each voxel a unique bone index is assigned. This means that if we were to use binary weights (see Compute Armature Weight) , a given voxel would rotate similarly to its associated bone in the skinned volume. Because the skinning might not produces perfect results (some voxels might be assigned the wrong bones), and because the skinned volume drives the weight computation, it can be useful to tweak the output skinned volume, most notably in joints area. The Editor module can be used to edit the labelmap. Simple workflow
Advanced workflow
B) Compute armature weightSmooth the Skinned volume by computing weights in order to consider the influence of every bone on a given voxel. Simple workflow
Advanced workflow
|
5) Pose armature (posing)
The Pose armature section guides the user into posing the armature for the final Pose labelmap resampling.
Note: When opening this page, the current armature automatically switches to Pose mode.
A) Evaluate surface weightTo speed up Pose surface, weights at each vertices can be pre-computed. Simple workflow
Advanced workflow
B) ArmaturesPose the armature by applying rotations to armature bones. You can directly pose the armature from the 3D view, if needed the Armatures module can provide more controls. Note: At this point only the Pose of the armature can be edited, if the "Rest" mode of the armature is changed, the skinned volume and bone weights must be recomputed. Simple workflow
C) Pose surfaceTransform a surface model according to the armature pose. Posing the skin (or bone) surface model gives a fairly good idea of what the result of the 6) Pose labelmap will look like. Simple workflow
Advanced workflow
|
6) Pose labelmap
The 6) Pose labelmap section is the final step of the workflow, it uses the posed armature and the weights associated with the volume to compute the posed labelmap.
A) Resample labelmap with posePose a labelmap volume given an armature and its weights. Simple workflow
Advanced workflow
|
Similar Modules
- Used modules
- Bender modules: Armatures, Change Label, Compute Armature Weight, Pose Surface, Pose Labelmap, Volume Skinning
- Slicer modules: Grayscale Model Maker, Models, Models Maker, Volumes, Volume Rendering
Developer Information
This module is a Python script module that can be manually edited for custom behavior (even in the installed version of Bender).