Ask Your Question

nagesh.telivo's profile - activity

2018-12-11 05:22:18 -0600 received badge  Popular Question (source)
2015-06-17 08:41:37 -0600 asked a question how to use properley floodFill method in android

i am beginer in opencv how to use flood fill method.thanks for help

i am using following code it will throws exception

Note:hear source is mat object

CODE:

            Imgproc.floodFill(source, source, new Point(source.cols()-10,10), new Scalar(255.0, 255.0, 255));
    Imgproc.floodFill(source, source, new Point(10,10), new Scalar(255.0, 255.0, 255.0));
    Imgproc.floodFill(source, source, new Point(10,source.rows()-10), new Scalar(255.0, 255.0, 255.0));
    Imgproc.floodFill(source, source, new Point(source.cols()-10,source.rows()-10), new Scalar(255.0, 255.0, 255.0));

Exception:

OpenCV Error: Assertion failed (mask.rows == size.height+2 && mask.cols == size.width+2) in int cv::floodFill(cv::InputOutputArray, cv::InputOutputArray, cv::Point, cv::Scalar, cv::Rect, cv::Scalar, cv::Scalar, int), file /builds/master_pack-android/opencv/modules/imgproc/src/floodfill.cpp, line 549 06-17 18:58:54.988: E/org.opencv.imgproc(16031): imgproc::floodFill_11() caught cv::Exception: /builds/master_pack-android/opencv/modules/imgproc/src/floodfill.cpp:549: error: (-215) mask.rows == size.height+2 && mask.cols == size.width+2 in function int cv::floodFill(cv::InputOutputArray, cv::InputOutputArray, cv::Point, cv::Scalar, cv::Rect, cv::Scalar, cv::Scalar, int)

2015-06-09 05:21:16 -0600 commented question how to increase image sharpness with out losing it's colors by using android opencv

Thank for response.i am beginer to the opencv,what is the right way for doing this(i have just image path,i need to increase sharpness with out losing it's colors).Thanks.....

2015-06-09 03:27:15 -0600 asked a question how to increase image sharpness with out losing it's colors by using android opencv

I am increasing image sharpness by using fallowing code

Mat source = Imgcodecs.imread(path, Imgcodecs.CV_LOAD_IMAGE_COLOR);
Mat destination=newMat(source.rows(),source.cols(),source.type());
Imgproc.GaussianBlur(source, destination, new Size(0,0), 10);
Core.addWeighted(source, 2.5, destination, -0.5, 0, destination);
bitmap = Bitmap.createBitmap(destination.cols(),
destination.rows(),Bitmap.Config.ARGB_8888);
Utils.matToBitmap(destination, bitmap);
image_view2.setImageBitmap(bm);

it is displaying some quality image but displayed image is only black & white, lost it's original colors

but I need to display the original colour

How to do it? Thank's for helping