You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ohif colormap defined both name and Name proprieties as well as NanColor and Description which are not in ColormapRegistration typing :
{
ColorSpace: 'RGB',
Name: 'Grayscale',
name: 'Grayscale',
NanColor: [1, 0, 0],
RGBPoints: [0, 0, 0, 0, 1, 1, 1, 1],
description: 'Grayscale',
},
In the current version, when registering a colormap following the ColormapRegistration type, there is an error while trying to set a colormap to stack viewport
TypeError: Cannot read properties of undefined (reading 'ColorSpace')
at e.applyColorMap (ColorTransferFunction.js:1112:18)
at ye.setColormapGPU (StackViewport.js:1845:33)
at ye.setProperties (StackViewport.js:607:18)
at setViewportColormap (commandsModule.ts:407:18)
this call of vtk seems to send a undefined colormap : rgbTransferFunction.applyColorMap(colormapObj);
I didn't found exactly what happens but there is sometring strange that OHIF colormap registration is not follwoing PublicColormap typing with duplicate Name and name proprieties
Steps to Reproduce
Code constancy issue
The current behavior
Code constancy issue
The expected behavior
Code constancy issue
OS
Linux
Node version
20
Browser
chrome latest
The text was updated successfully, but these errors were encountered:
Describe the Bug
It seems there are messy proprieties in colomap definitions,
When registering a colomap the typing of colomap is :
function registerColormap(colormap: ColormapRegistration): void;
interface ColormapRegistration { ColorSpace: string; Name: string; RGBPoints: RGB[] | number[]; }
In ohif colormap defined both name and Name proprieties as well as NanColor and Description which are not in ColormapRegistration typing :
{
ColorSpace: 'RGB',
Name: 'Grayscale',
name: 'Grayscale',
NanColor: [1, 0, 0],
RGBPoints: [0, 0, 0, 0, 1, 1, 1, 1],
description: 'Grayscale',
},
https://github.com/OHIF/Viewers/blob/27c040fdda060bc18e38bd8f27150bd089bd0836/extensions/cornerstone/src/utils/colormaps.js#L2-L3
In the current version, when registering a colormap following the ColormapRegistration type, there is an error while trying to set a colormap to stack viewport
TypeError: Cannot read properties of undefined (reading 'ColorSpace')
at e.applyColorMap (ColorTransferFunction.js:1112:18)
at ye.setColormapGPU (StackViewport.js:1845:33)
at ye.setProperties (StackViewport.js:607:18)
at setViewportColormap (commandsModule.ts:407:18)
this call of vtk seems to send a undefined colormap : rgbTransferFunction.applyColorMap(colormapObj);
I didn't found exactly what happens but there is sometring strange that OHIF colormap registration is not follwoing PublicColormap typing with duplicate Name and name proprieties
Steps to Reproduce
Code constancy issue
The current behavior
Code constancy issue
The expected behavior
Code constancy issue
OS
Linux
Node version
20
Browser
chrome latest
The text was updated successfully, but these errors were encountered: