コード例 #1
0
        public void ManipulateSeam(IImageProcessing imgProcessor,SeamDirection seamDirection)
        {
            int[,] energy = imgProcessor.Energy(new LaMImageData.EnergyCalGradient(), false);

            int[] dynamicSeamArray = Library.CreateDynamicSeam(energy,seamDirection);

            imgProcessor.DynamicRow(new PixelColor(), dynamicSeamArray,seamDirection);
        }
コード例 #2
0
        public void ManipulateSeam(IImageProcessing imgProcessor, SeamDirection seamDirection)
        {
            int[,] energy = imgProcessor.Energy(new LaMImageData.EnergyCalGradient(), false);

            int seam = Library.FindStaticSeam(Library.TabSum(energy));

            imgProcessor.StaticRow(new PixelRemove(), seam);
        }