Пример #1
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <param name="originalImageFilePath">The original image file path.</param>
        /// <param name="untransformedAsciiFilePath">The untransformed ascii file path.</param>
        /// <param name="transformedAsciiFilePath">The transformed ascii file path.</param>
        /// <param name="transformedImageFilePath">The transformed image file path.</param>
        /// <param name="retransformedAsciiFilePath">The retransformed ASCII file path.</param>
        /// <param name="retransformedImageFilePath">The retransformed image file path.</param>
        public static void Init(
            string originalImageFilePath,
            string untransformedAsciiFilePath,
            string transformedAsciiFilePath,
            string transformedImageFilePath,
            string retransformedAsciiFilePath,
            string retransformedImageFilePath)
        {
            if (string.IsNullOrEmpty(untransformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(transformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(transformedImageFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(retransformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(retransformedImageFilePath))
            {
                throw new ArgumentNullException();
            }

            if (File.Exists(untransformedAsciiFilePath) == false)
            {
                throw new ArgumentException("Ascii input file not found.");
            }

            instance = new WaveletTransform(
                originalImageFilePath, untransformedAsciiFilePath, transformedAsciiFilePath, transformedImageFilePath, retransformedAsciiFilePath, retransformedImageFilePath);
        }
Пример #2
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <param name="originalImageFilePath">The original image file path.</param>
        /// <param name="untransformedAsciiFilePath">The untransformed ascii file path.</param>
        /// <param name="transformedAsciiFilePath">The transformed ascii file path.</param>
        /// <param name="transformedImageFilePath">The transformed image file path.</param>
        /// <param name="retransformedAsciiFilePath">The retransformed ASCII file path.</param>
        /// <param name="retransformedImageFilePath">The retransformed image file path.</param>
        public static void Init(
            string originalImageFilePath, 
            string untransformedAsciiFilePath, 
            string transformedAsciiFilePath, 
            string transformedImageFilePath,
            string retransformedAsciiFilePath,
            string retransformedImageFilePath)
        {
            if (string.IsNullOrEmpty(untransformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(transformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(transformedImageFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(retransformedAsciiFilePath))
            {
                throw new ArgumentNullException();
            }

            if (string.IsNullOrEmpty(retransformedImageFilePath))
            {
                throw new ArgumentNullException();
            }

            if (File.Exists(untransformedAsciiFilePath) == false)
            {
                throw new ArgumentException("Ascii input file not found.");
            }

            instance = new WaveletTransform(
                originalImageFilePath, untransformedAsciiFilePath, transformedAsciiFilePath, transformedImageFilePath, retransformedAsciiFilePath, retransformedImageFilePath);
        }