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); }
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); }