Spectral images¶
A spectral image is a stack of pictures of the same field, one per wavelength. CytoSpec treats every pixel as an event whose spectrum is its values across the stack, so all the tools for cytometry data - plots, PCA, gates, decomposition - also work on images.
Open an image with File → Open Picture, Open Multipage Image or Open Kodak Multipage - see Opening data. Double-click an image data set in the Data Sets panel to show it again.
The image window¶
The image is shown in pseudo-colour: each wavelength contributes its own colour, so the picture resembles what the eye would see.
| Control | Effect |
|---|---|
| Frame selector | Show a single wavelength instead of the pseudo-colour image |
| Gamma | Brighten or darken the display |
| Image Info | Details of the image |
| Histogram | Histogram of the image values |
| Spectrum | The spectrum of the pixels you point at |
| Calculator | The Data Calculator - compute a new channel from existing ones |
| Hyperspherical | Convert the image data to hyperspherical coordinates |
Selecting regions¶
Use the rectangle or polygon selection button to mark a region of the image. Create a data set from selected region copies its pixels into a new data set.
The grid button lays a grid of circular wells over the image - for images of well plates; set the Radius of the well in the grid.
Classifying pixels¶
Classification assigns every pixel to one of a set of classes defined by example regions.
- Select a region that is typical of one material or stain and choose Create Class. Give it a name. The class appears in the training-set table in its own colour.
- Repeat for each class. Tick the classes to use.
- Classify:
| Command | Method |
|---|---|
| SAM Classification | Spectral Angle Mapper - every pixel goes to the class whose mean spectrum points in the most similar direction, regardless of brightness. Tick Use Sigma to leave pixels unclassified when no class is close enough |
| SD Classification | Every pixel goes to the class that decomposition assigns the largest share |
| Decomposition | Unmix every pixel into the mean spectra of the ticked classes; creates a data set with one channel per class |
The classified pixels are shown in their class colours and added as data sets.
Save Classes and Load Classes store and restore the training set; Delete CLass removes one; Start Over clears them all.
Other image commands¶
- File → Save as Multipage Image writes the selected images as a stack.
- The preview window can Send To Image Pro+.