Data types

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 typeC data typeSize (bytes)Single letter code
UCharunsigned char1b
SCharsigned char1c
UShortunsigned short2u
Shortshort2s
Intint4i
Longlong8l
Floatfloat4f
Doubledouble8d
ComplexShortstruct complex_short { short re,im; }4S
ComplexIntstruct complex_int { int re,im; }8I
ComplexFloatstruct complex_float { float re,im; }8F
ComplexDoublestruct complex_double { double re,im; }16D