AnsweredAssumed Answered

Edit Raster Function does not apply the right colour scheme

Question asked by oddbjornlarsen@gmail.com on May 19, 2017
Latest reply on May 31, 2017 by g.doerffelmysynergis-esridist

Hi

 

I exported a template to convert a RGB image to HSV using image analysis. (rtf.xml file)

<RasterFunctionTemplate xsi:type='typens:RasterFunctionTemplate' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.5'><Name>Raster Function Template</Name><Description>A raster function template.</Description><Function xsi:type='typens:ColorspaceConversionFunction'><Name>Color Model Conversion Function</Name><Description>Converts between color models, for example RGB to HSV.</Description><PixelType>U8</PixelType></Function><Arguments xsi:type='typens:ColorspaceConversionFunctionArguments'><Names xsi:type='typens:ArrayOfString'><String>Raster</String><String>ConversionType</String></Names><Values xsi:type='typens:ArrayOfAnyType'><AnyType xsi:type='typens:RasterFunctionVariable'><Name>Raster</Name><Description></Description><Value></Value><IsDataset>true</IsDataset></AnyType><AnyType xsi:type='typens:RasterFunctionVariable'><Name>ConversionType_2017519_102915_628</Name><Description></Description><Value xsi:type='xs:int'>0</Value><IsDataset>false</IsDataset></AnyType></Values></Arguments><Help></Help><Type>0</Type><Thumbnail></Thumbnail><Definition></Definition><Group></Group><Tag></Tag><ThumbnailEx></ThumbnailEx></RasterFunctionTemplate>

When I try to use the tool "Edit raster function" and use this rtf.xml file the input is not correctly transformed, looks like it only uses one band.

 

This is the output, using the "Edit Raster Function" tool.

Image output using "Edit Raster Function"

 

And this is the correct output, using "Image Analysis" tool, with the "Color Model Conversion Function" (RGB to HSV)

Image output, using "Image Analysis" tool.

 

Any help appriciated! Original image attached.

Attachments

Outcomes