Exemplo n.º 1
0
        public void Apply(IPresentationImage image)
        {
            var transform = ResetImageOperation.GetSpatialTransform(image);

            if (transform != null)
            {
                transform.Scale        = 1.0f;
                transform.TranslationX = 0.0f;
                transform.TranslationY = 0.0f;
                transform.FlipY        = false;
                transform.FlipX        = false;
                transform.RotationXY   = 0;
                transform.ScaleToFit   = true;
            }

            var transform3D = ResetImageOperation.GetSpatialTransform3D(image);

            if (transform3D != null)
            {
                transform3D.Scale        = 1.0f;
                transform3D.TranslationX = 0.0f;
                transform3D.TranslationY = 0.0f;
                transform3D.TranslationZ = 0.0f;
                transform3D.FlipYZ       = false;
                transform3D.FlipXZ       = false;
                transform3D.FlipXY       = false;
                transform3D.Rotation     = null;
            }
        }
Exemplo n.º 2
0
        public void Apply(IPresentationImage image)
        {
            var transform = ResetImageOperation.GetSpatialTransform(image);

            if (transform != null)
            {
                transform.Reset();
            }

            var transform3D = ResetImageOperation.GetSpatialTransform3D(image);

            if (transform3D != null)
            {
                transform3D.Reset();
            }
        }
Exemplo n.º 3
0
        public void Apply(IPresentationImage image)
        {
            var transform = ResetImageOperation.GetSpatialTransform(image);

            if (transform != null)
            {
                transform.Scale        = 1.0f;
                transform.TranslationX = 0.0f;
                transform.TranslationY = 0.0f;
                transform.FlipY        = false;
                transform.FlipX        = false;
                transform.RotationXY   = 0;
                transform.ScaleToFit   = true;
            }

            var transform3D = ResetImageOperation.GetSpatialTransform3D(image);

            if (transform3D != null)
            {
                transform3D.Scale        = 1.0f;
                transform3D.TranslationX = 0.0f;
                transform3D.TranslationY = 0.0f;
                transform3D.TranslationZ = 0.0f;
                transform3D.FlipYZ       = false;
                transform3D.FlipXZ       = false;
                transform3D.FlipXY       = false;
                transform3D.Rotation     = null;
            }

            var applicator = AutoVoiLutApplicator.Create(image);

            if (applicator == null)
            {
                return;
            }

            applicator.ApplyNextLut();
        }