src/internal/computeAutoVoi.js
function hasVoi (viewport) {
  const hasLut = viewport.voiLUT && viewport.voiLUT.lut && viewport.voiLUT.lut.length > 0;

  return hasLut || (viewport.voi.windowWidth !== undefined && viewport.voi.windowCenter !== undefined);
}
function hasVoi (viewport) {
  const hasLut = viewport.voiLUT && viewport.voiLUT.lut && viewport.voiLUT.lut.length > 0;

  return hasLut || (viewport.voi.windowWidth !== undefined && viewport.voi.windowCenter !== undefined);
}
function hasVoi ( viewport ) { const hasLut = viewport . voiLUT && viewport . voiLUT . lut && viewport . voiLUT . lut . length > 0 ; return hasLut || ( viewport . voi . windowWidth !== undefined && viewport . voi . windowCenter !== undefined ) ; }
Check if viewport has voi LUT data
@param {any} viewport The viewport to check for voi LUT data
@returns {Boolean} true viewport has LUT data (Window Width/Window Center or voiLUT). Otherwise, false.
@memberof Internal
Check if viewport has voi LUT data