init: sudah ganti logo, hilangin setting, dan investigational use dialog
This commit is contained in:
14
extensions/cornerstone-dicom-seg/src/utils/dicomlabToRGB.ts
Normal file
14
extensions/cornerstone-dicom-seg/src/utils/dicomlabToRGB.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import dcmjs from 'dcmjs';
|
||||
|
||||
/**
|
||||
* Converts a CIELAB color to an RGB color using the dcmjs library.
|
||||
* @param cielab - The CIELAB color to convert.
|
||||
* @returns The RGB color as an array of three integers between 0 and 255.
|
||||
*/
|
||||
function dicomlabToRGB(cielab: number[]): number[] {
|
||||
const rgb = dcmjs.data.Colors.dicomlab2RGB(cielab).map(x => Math.round(x * 255));
|
||||
|
||||
return rgb;
|
||||
}
|
||||
|
||||
export { dicomlabToRGB };
|
||||
Reference in New Issue
Block a user