StrToPixelType (replaces StrToDatatype)
The PixelTypeToStr function returns the pixel type number corresponding to the pixel type name. For example passing "float" returns 5.
number = StrToPixelType( string )
string is the pixel type name from the Pixel Types table.
numberis the pixel type code from the Pixel Types table.
The example below converts pixel type "float" to to its number:
|
-- pixel type "float" |
|
-- get the corresponding number |
|
-- result: name="float"type=5 |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.