FARSIGHT Tutorials/Multi-Component Images
From FarsightWiki
(Difference between revisions)
LuisIbanez (Talk | contribs) (→Basics Concepts) |
LuisIbanez (Talk | contribs) (→Basics Concepts) |
||
Line 8: | Line 8: | ||
= Basics Concepts = | = Basics Concepts = | ||
− | == Image | + | == Image Nature == |
* '''Multi-channel images''': are images for which every pixel contains multiple scalar values. They are common in microsocopy as | * '''Multi-channel images''': are images for which every pixel contains multiple scalar values. They are common in microsocopy as | ||
Line 14: | Line 14: | ||
** Images acquired with multiple color filters | ** Images acquired with multiple color filters | ||
*** Images corresponding to different frequencies of fluorescent proteins | *** Images corresponding to different frequencies of fluorescent proteins | ||
+ | |||
+ | It is common for the number of components in an image to be known only when the image is loaded into memory. | ||
+ | |||
+ | == ITK Image Types == | ||
+ | |||
+ | The proper type for managing multi-component images is the | ||
+ | |||
+ | itk.VectorImage | ||
+ | |||
+ | You can create an itk.VectorImage with the following Python command | ||
+ | |||
+ | vimage1 = itk.VectorImage[ itk.UC, 2 ].New() | ||
+ | |||
+ | This will create an image of 2 dimensions, where every pixel has components represented as "unsigned chars" and therefore encoded in 8-bits. |
Revision as of 14:30, 4 May 2009
Contents |
Details
- Goal: This tutorial is intended to show you how to multi-component (also known as multi-channel) in FARSIGHT
- Duration: 30 minutes
- Requisites: Having completed the tutorial: Quick Start for users of ITK (30 minutes)
- Materials: FARSIGHT Installed
Basics Concepts
Image Nature
- Multi-channel images: are images for which every pixel contains multiple scalar values. They are common in microsocopy as
- RGB color images
- Images acquired with multiple color filters
- Images corresponding to different frequencies of fluorescent proteins
It is common for the number of components in an image to be known only when the image is loaded into memory.
ITK Image Types
The proper type for managing multi-component images is the
itk.VectorImage
You can create an itk.VectorImage with the following Python command
vimage1 = itk.VectorImage[ itk.UC, 2 ].New()
This will create an image of 2 dimensions, where every pixel has components represented as "unsigned chars" and therefore encoded in 8-bits.