private void btnVerify_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(inputFilePathDecoder))
                {
                    throw new NullReferenceException();
                }
                if (auxOriginalImage == null || isFileDecoded == false)
                {
                    throw new NullReferenceException();
                }

                nlEngine = new NearLosslessEngine(bmpObject.GetBmpDataEncoded());
                nlEngine.DecompressImage(decodingP, decodingK, auxOriginalImage);
                textBoxMinErrorValue.Text = nlEngine.minValueError.ToString();
                textBoxMaxErrorValue.Text = nlEngine.maxValueError.ToString();
            }
            catch (NullReferenceException)
            {
                MessageBox.Show("Warning: You forgot to load original image/ decode the same image!");
            }
        }
        private void btnDecodeImage_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(inputFilePathDecoder))
                {
                    throw new NullReferenceException();
                }

                nlEngine = new NearLosslessEngine(bmpObject.GetBmpDataEncoded());

                nlEngine.DecompressImage(decodingP, decodingK, auxOriginalImage);

                pictureBoxDecodedImage.Image = Helpers.BuildBitmapFromMatrix(nlEngine.GetDecodedImageMatrix());

                MessageBox.Show("Image was decoded succesfully!");
                label15.Text  = "Decoded Image";
                isFileDecoded = true;
            }
            catch (NullReferenceException)
            {
                MessageBox.Show("Warning: You forgot to load Decoded Image!");
            }
        }