Difference between revisions of "Documentation/4.0/Modules/Colors"
(Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude>{{documentation/versioncheck}}</noinclude> | ||
<!-- ---------------------------- --> | <!-- ---------------------------- --> | ||
{{documentation/{{documentation/version}}/module-header}} | {{documentation/{{documentation/version}}/module-header}} | ||
Line 20: | Line 21: | ||
<!-- ---------------------------- --> | <!-- ---------------------------- --> | ||
{{documentation/{{documentation/version}}/module-section|Module Description}} | {{documentation/{{documentation/version}}/module-section|Module Description}} | ||
− | |||
Line 42: | Line 42: | ||
You can load a color table file from the File -> Add Data dialog. | You can load a color table file from the File -> Add Data dialog. | ||
+ | ===File format=== | ||
The color file format is a plain text file with the .txt or .ctbl extension. Each line in the file has: | The color file format is a plain text file with the .txt or .ctbl extension. Each line in the file has: | ||
Line 48: | Line 49: | ||
label is an integer, name a string, and RGBA are 0-255. | label is an integer, name a string, and RGBA are 0-255. | ||
+ | File example: | ||
+ | # Comments if the line start with # | ||
+ | 0 air 0 0 0 0 | ||
+ | 1 bone 1 1 1 1 whatever after the Alpha value is discarded | ||
+ | 2 tumor 1 0 0 1 | ||
+ | ... | ||
+ | ===Custom LUTs=== | ||
+ | You can create custom LUTs by [[Documentation/{{documentation/version}}/SlicerApplication/LookupTables#Custom_LUTs|creating a table with the colors on the wiki]]. | ||
+ | |||
+ | ===Categories=== | ||
The colors are divided up into categories: | The colors are divided up into categories: | ||
Line 137: | Line 148: | ||
<!-- ---------------------------- --> | <!-- ---------------------------- --> | ||
{{documentation/{{documentation/version}}/module-section|Tutorials}} | {{documentation/{{documentation/version}}/module-section|Tutorials}} | ||
− | + | N/A | |
<!-- ---------------------------- --> | <!-- ---------------------------- --> | ||
Line 194: | Line 205: | ||
<!-- ---------------------------- --> | <!-- ---------------------------- --> | ||
{{documentation/{{documentation/version}}/module-section|References}} | {{documentation/{{documentation/version}}/module-section|References}} | ||
+ | N/A | ||
<!-- ---------------------------- --> | <!-- ---------------------------- --> |
Latest revision as of 07:33, 14 June 2013
Home < Documentation < 4.0 < Modules < Colors
For the latest Slicer documentation, visit the read-the-docs. |
Introduction and Acknowledgements
This work is part of the National Alliance for Medical Image Computing (NA-MIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on NA-MIC can be obtained from the NA-MIC website. | |||||||
|
Module Description
The Colors Module manages color look up tables. Tables are used by mappers to translate between an integer and a colour value for display of models and volumes. Slicer supports three kinds of tables:
You can load a color table file from the File -> Add Data dialog. File formatThe color file format is a plain text file with the .txt or .ctbl extension. Each line in the file has: label name R G B A label is an integer, name a string, and RGBA are 0-255. File example: # Comments if the line start with # 0 air 0 0 0 0 1 bone 1 1 1 1 whatever after the Alpha value is discarded 2 tumor 1 0 0 1 ... Custom LUTsYou can create custom LUTs by creating a table with the colors on the wiki. CategoriesThe colors are divided up into categories:
|
Use Cases
The Colors module Dispay panel can be popped up as a stand alone widget and used to select colors in other modules of Slicer4.
- The Models module uses it to select surface model colours.
- The Volumes module uses it to select color maps for label map volumes to control which colors are used to display the scalar values at each voxel
- The Editor uses it to select colors with which to paint on label map volumes.
Tutorials
N/A
Panels and their use
A list of all the panels in the interface, their features, what they mean, and how to use them. For instance:
|
|
|
Similar Modules
- The Volumes, Editor and Models modules use the colours to adjust the display properties for label map volumes and surface models
References
N/A
Information for Developers
Section under construction. |