RasterPaletteInterpretationCoercer
Alters the underlying interpretation of the palettes of the raster geometry on the input features, using the specified conversion options.
例如,具有单个频带的输入栅格特征可以将RGB24的单个调色板转换为单个频带,其中单个RGB64或字符串数据。
参数
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Selects the destination interpretation along with the bit depth. Different interpretations allow for different conversion options to be used.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Selects the action to perform when converting an RGBA palette to an RGB palette. The Drop the alpha band option simply discards the alpha component from the palette. The Apply the alpha band option multiplies all RGB values with their corresponding, normalized alpha value.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Selects the action to perform when converting an RGB palette to an RGBA palette:
- 创造不透明的alpha.adds a new alpha component which has the maximum value for the data type in all palette entries.
- Create alpha component from nodataadds a new alpha component which has the maximum value for the data type in all palette entries except the nodata entry. Note that when this option is selected, all selected input bands have a nodata value.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
当发生不同颜色类型之间的转换时,选择要进行的操作。
- Cast: Uses C-style casts to convert the values.
- 有界演员:使用C样式调整来转换值,但也验证源值是否适合目的地类型,有效地防止下溢和溢出;如果源值不符合源值,则将设置为其类型的最小值或最大值的相应目标值。
- 按数据值缩放:查找源值的最小值和最大值,并使用它们将值缩放到目标类型的全范围。
- 按数据类型缩放:缩放源值,同时保留在源和目标类型的范围内的所有比例。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
指定从浮点值转换为整数时要执行的操作。
- Roundrounds to floating-point value to the nearest integer.
- Ceilinggets the next integer which is greater than or equal to the floating-point value.
- Floorgets the next integer which is less than or equal to the floating-point value.
Usage Notes
Each RasterPaletteInterpretationCoercer performs a conversion on the input raster. If multiple RasterPaletteInterpretationCoercers are used in sequence, then multiple conversions will take place; data quality and translation performance may suffer.
此变压器支持光栅频段和调色板选择。这RasterSelectorcan be used to modify selection.
Related Transformers
这RasterInterpretationCoercer.performs similar operations on the raster as a whole, such as converting 4 bands directly to RGBA.
这RasterBandInterpretationCoercerperforms similar conversions on individual bands.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options。
Transformer Categories
FME许可级别
FME专业版及以上
变压器历史
This transformer replaces the RasterDataTypeCoercer and RasterColorModelCoercer transformers.
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心。
标签关键词:栅格网格频段通道调色板查找LUT COLORMAP COLOUMAP数据类型转换胁迫调整解释COLORMODEL Colourmodel Bitdepth Rescale Scale