Each channel in the image contains a single value, where the data types supported in Bsoft are listed in Table 5.1. Images with multiple channels can have any data type. This makes the image data model more general and as an example, allows for specification of color images as floating point values.
Table 5.1. Bsoft image data types
| Enumerated data type | C data type | Size (bytes) | Single letter code |
|---|---|---|---|
| UChar | unsigned char | 1 | b |
| SChar | signed char | 1 | c |
| UShort | unsigned short | 2 | u |
| Short | short | 2 | s |
| Int | int | 4 | i |
| Long | long | 8 | l |
| Float | float | 4 | f |
| Double | double | 8 | d |
| ComplexShort | struct complex_short { short re,im; } | 4 | S |
| ComplexInt | struct complex_int { int re,im; } | 8 | I |
| ComplexFloat | struct complex_float { float re,im; } | 8 | F |
| ComplexDouble | struct complex_double { double re,im; } | 16 | D |