8.54. Create Color Map

Description

This Filter generates a color table array for a given 1-component input array. Each element of the input array is normalized and converted to a color based on where the value falls in the spectrum of the selected color preset.

The user can apply an optional data mask and then set the RGB values (0-255) that will be used if the data mask has a FALSE value.

Preset Values

These are the valid preset strings that can be used.

Preset Name

Color Space

Example

2hot

Lab

2hot

Asymmetrical Earth Tones (6_21b)

Lab

Asymmetrical Earth Tones (6_21b)

Black-Body Radiation

RGB

Black-Body Radiation

Black, Blue and White

RGB

Black, Blue and White

Black, Orange and White

RGB

Black, Orange and White

Blue - Green - Orange

CIELAB

Blue - Green - Orange

Blue Orange (divergent)

Lab

Blue Orange (divergent)

Blue to Yellow

RGB

Blue to Yellow

BLUE-WHITE

Lab

BLUE-WHITE

blue2cyan

Lab

blue2cyan

blue2yellow

Lab

blue2yellow

Blues

Lab

Blues

bone_Matlab

Lab

bone_Matlab

BrBG

Lab

BrBG

BrOrYl

Lab

BrOrYl

BuGn

Lab

BuGn

BuGnYl

Lab

BuGnYl

BuPu

Lab

BuPu

BuRd

Lab

BuRd

CIELab Blue to Red

Lab

CIELab Blue to Red

Cividis

Lab

Cividis

Cold and Hot

RGB

Cold and Hot

Cool to Warm (Extended)

Lab

Cool to Warm (Extended)

Cool to Warm

Diverging

Cool to Warm

copper_Matlab

Lab

copper_Matlab

erdc_blue_BW

Lab

erdc_blue_BW

erdc_blue2cyan_BW

Lab

erdc_blue2cyan_BW

erdc_blue2gold

Lab

erdc_blue2gold

erdc_blue2gold_BW

Lab

erdc_blue2gold_BW

erdc_blue2green_BW

Lab

erdc_blue2green_BW

erdc_blue2green_muted

Lab

erdc_blue2green_muted

erdc_blue2yellow

Lab

erdc_blue2yellow

erdc_brown_BW

Lab

erdc_brown_BW

erdc_cyan2orange

Lab

erdc_cyan2orange

erdc_divHi_purpleGreen

Lab

erdc_divHi_purpleGreen

erdc_divHi_purpleGreen_dim

Lab

erdc_divHi_purpleGreen_dim

erdc_divLow_icePeach

Lab

erdc_divLow_icePeach

erdc_divLow_purpleGreen

Lab

erdc_divLow_purpleGreen

erdc_gold_BW

Lab

erdc_gold_BW

erdc_green2yellow_BW

Lab

erdc_green2yellow_BW

erdc_iceFire_H

Lab

erdc_iceFire_H

erdc_iceFire_L

Lab

erdc_iceFire_L

erdc_magenta_BW

Lab

erdc_magenta_BW

erdc_marine2gold_BW

Lab

erdc_marine2gold_BW

erdc_orange_BW

Lab

erdc_orange_BW

erdc_pbj_lin

Lab

erdc_pbj_lin

erdc_purple_BW

Lab

erdc_purple_BW

erdc_purple2green

Lab

erdc_purple2green

erdc_purple2green_dark

Lab

erdc_purple2green_dark

erdc_purple2pink_BW

Lab

erdc_purple2pink_BW

erdc_rainbow_bright

Lab

erdc_rainbow_bright

erdc_rainbow_dark

Lab

erdc_rainbow_dark

erdc_red_BW

Lab

erdc_red_BW

erdc_red2purple_BW

Lab

erdc_red2purple_BW

erdc_red2yellow_BW

Lab

erdc_red2yellow_BW

erdc_sapphire2gold_BW

Lab

erdc_sapphire2gold_BW

Fast

RGB

Fast

GBBr

Lab

GBBr

gist_earth

Lab

gist_earth

GnBu

Lab

GnBu

GnBuPu

Lab

GnBuPu

GnRP

Lab

GnRP

GnYlRd

Lab

GnYlRd

Gray and Red

Lab

Gray and Red

Grayscale

RGB

Grayscale

Green-Blue Asymmetric Divergent (62Blbc)

Lab

Green-Blue Asymmetric Divergent (62Blbc)

GREEN-WHITE_LINEAR

Lab

GREEN-WHITE_LINEAR

Greens

Lab

Greens

GYPi

Lab

GYPi

GyRd

Lab

GyRd

Haze

RGB

Haze

Haze_cyan

Lab

Haze_cyan

Haze_green

Lab

Haze_green

Haze_lime

Lab

Haze_lime

heated_object

Lab

heated_object

hsv

RGB

hsv

hue_L60

Lab

hue_L60

Inferno (matplotlib)

Diverging

Inferno (matplotlib)

Jet

RGB

Jet

Linear Blue (8_31f)

Lab

Linear Blue (8_31f)

Linear Green (Gr4L)

Lab

Linear Green (Gr4L)

Linear YGB 1211g

Lab

Linear YGB 1211g

magenta

Lab

magenta

Magma (matplotlib)

Diverging

Magma (matplotlib)

Muted Blue-Green

Lab

Muted Blue-Green

nic_CubicL

Lab

nic_CubicL

nic_CubicYF

Lab

nic_CubicYF

nic_Edge

Lab

nic_Edge

Oranges

Lab

Oranges

OrPu

Lab

OrPu

pink_Matlab

Lab

pink_Matlab

PiYG

Lab

PiYG

Plasma (matplotlib)

Diverging

Plasma (matplotlib)

PRGn

Lab

PRGn

PuBu

Lab

PuBu

PuOr

Lab

PuOr

PuRd

Lab

PuRd

Purples

Lab

Purples

Rainbow

RGB

Rainbow

Rainbow Blended Black

RGB

Rainbow Blended Black

Rainbow Blended Grey

RGB

Rainbow Blended Grey

Rainbow Blended White

RGB

Rainbow Blended White

Rainbow Desaturated

RGB

Rainbow Desaturated

Rainbow Uniform

RGB

Rainbow Uniform

RdOr

Lab

RdOr

RdOrYl

Lab

RdOrYl

RdPu

Lab

RdPu

RED_TEMPERATURE

Lab

RED_TEMPERATURE

RED-PURPLE

Lab

RED-PURPLE

Reds

Lab

Reds

Spectral_lowBlue

Lab

Spectral_lowBlue

Turbo

RGB

Turbo

Viridis (matplotlib)

Diverging

Viridis (matplotlib)

Warm to Cool (Extended)

Lab

Warm to Cool (Extended)

Warm to Cool

Diverging

Warm to Cool

X Ray

RGB

X Ray

Yellow - Gray - Blue

Lab

Yellow - Gray - Blue

Yellow 15

Lab

Yellow 15

Input Parameter(s)

Parameter Name

Parameter Type

Parameter Notes

Description

Select Preset…

CreateColorMap

Select a preset color scheme to apply to the created array

Input Data Objects

Parameter Name

Parameter Type

Parameter Notes

Description

Data Array

Array Selection

Allowed Types: int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, boolean Comp. Shape: 1

The complete path to the data array from which to create the rgb array by applying the selected preset color scheme

Optional Data Mask

Parameter Name

Parameter Type

Parameter Notes

Description

Use Mask Array

Bool

Whether to assign a black color to ‘bad’ Elements

Mask Array

Array Selection

Allowed Types: uint8, boolean Comp. Shape: 1

Path to the data array used to define Elements as good or bad.

Masked Color (RGB)

Vector of UInt8 Values

Order=Red,Green,Blue

The color to assign to voxels that have a mask value of FALSE

Output Data Object(s)

Parameter Name

Parameter Type

Parameter Notes

Description

Output RGB Array

DataObjectName

The rgb array created by normalizing each element of the input array and converting to a color based on the selected preset color scheme

Example Pipelines

DREAM3D-NX Help

If you need help, need to file a bug report or want to request a new feature, please head over to the DREAM3DNX-Issues GitHub site where the community of DREAM3D-NX users can help answer your questions.