src/falseColorMapping.js
function convertToFalseColorImage (element, colormap) {
  const enabledElement = getEnabledElement(element);


  return convertImageToFalseColorImage(enabledElement.image, colormap);
}
function convertToFalseColorImage (element, colormap) {
  const enabledElement = getEnabledElement(element);


  return convertImageToFalseColorImage(enabledElement.image, colormap);
}
function convertToFalseColorImage ( element , colormap ) { const enabledElement = getEnabledElement ( element ) ; return convertImageToFalseColorImage ( enabledElement . image , colormap ) ; }
Convert the image of a element to a false color image

@param {HTMLElement} element The Cornerstone element
@param {*} colormap - it can be a colormap object or a colormap id (string)

@returns {void}
Convert the image of a element to a false color image