irc_web/.svn/pristine/68/683e7219b9fb7ea5011de167dc4...

17 lines
407 B
Plaintext

const windowWidth = 400;
const windowCenter = 40;
const lower = windowCenter - windowWidth / 2.0;
const upper = windowCenter + windowWidth / 2.0;
const ctVoiRange = { lower, upper };
export default function setCtTransferFunctionForVolumeActor({ volumeActor }) {
volumeActor
.getProperty()
.getRGBTransferFunction(0)
.setMappingRange(lower, upper);
}
export { ctVoiRange };