public static bool CanCreateFrom(IPresentationImage presentationImage)
 {
     return(LutHelper.IsVoiLutProvider(presentationImage) &&
            LutHelper.IsVoiLutEnabled(presentationImage) &&
            LutHelper.IsColorImage(presentationImage) &&
            LutHelper.IsImageSopProvider(presentationImage));
 }
 public static bool CanCreateFrom(IPresentationImage presentationImage)
 {
     return(LutHelper.IsDicomVoiLutsProvider(presentationImage) &&
            LutHelper.IsVoiLutProvider(presentationImage) &&
            LutHelper.IsVoiLutEnabled(presentationImage) &&
            LutHelper.IsGrayScaleImage(presentationImage) &&
            LutHelper.IsImageSopProvider(presentationImage));
 }
 private MinMaxPixelCalculatedLinearLut GetDefaultMinMaxLut()
 {
     if (LutHelper.IsModalityLutProvider(Image))
     {
         return(new MinMaxPixelCalculatedLinearLut(PixelData, ((IModalityLutProvider)Image).ModalityLut));
     }
     else
     {
         return(new MinMaxPixelCalculatedLinearLut(PixelData));
     }
 }
 public override bool AppliesTo(IPresentationImage presentationImage)
 {
     return(base.AppliesTo(presentationImage) && LutHelper.IsGrayScaleImage(presentationImage));
 }
 public virtual bool AppliesTo(IPresentationImage presentationImage)
 {
     return(LutHelper.IsVoiLutEnabled(presentationImage) && GetOriginator(presentationImage) != null);
 }