Ask Your Question

krshrimali's profile - activity

2018-06-09 09:32:57 -0600 commented question Gaussian Fitting an image in OpenCV

Well, the MSCN image output is not shared in the paper, but I'll share the link soon. As far as the plot is concerned,

2018-06-09 07:08:54 -0600 commented answer How to detect blob in noisy image?

Agreed, specially the otsu threshold and gray conversion method. Color doesn't help here, most probably. The best way wo

2018-06-09 07:06:26 -0600 asked a question Gaussian Fitting an image in OpenCV

Gaussian Fitting an image in OpenCV Hey! So the thing is, I am trying to plot a gaussian fit of an image in OpenCV usin

2018-06-07 03:17:52 -0600 commented question Difference in same operations between Python and C++ OpenCV Code

Ohkay, is there any possibility of a slight difference in Gaussian Blur of C++ and Python?

2018-06-07 03:04:00 -0600 commented question Difference in same operations between Python and C++ OpenCV Code

Thanks @berak, well, I was unsure about the subtraction order, so I included abs for that. If I remove that, it also wor

2018-06-07 02:49:14 -0600 edited question Difference in same operations between Python and C++ OpenCV Code

Difference in same operations between Python and C++ OpenCV Code I've been working on BRISQUE IQA for Python and C++ for

2018-06-07 02:34:55 -0600 asked a question Difference in same operations between Python and C++ OpenCV Code

Difference in same operations between Python and C++ OpenCV Code I've been working on BRISQUE IQA for Python and C++ for

2018-06-07 02:34:50 -0600 asked a question Difference in same operations between Python and C++ OpenCV Code

Difference in same operations between Python and C++ OpenCV Code I've been working on BRISQUE IQA for Python and C++ for

2018-06-04 08:43:30 -0600 commented answer Conversion of C API to C++ API problem

Thanks @berak!

2018-06-04 01:13:53 -0600 commented question Using Regressor along with OpenCV SVM Class

Oh! Thanks for clearing the confusion.

2018-06-04 01:00:18 -0600 commented question Using Regressor along with OpenCV SVM Class

So this means, that there are 2 classes, positive and negative (1024 and -1024) and there are 6 distortions (jpeg, jpeg2

2018-06-04 00:48:04 -0600 commented question Using Regressor along with OpenCV SVM Class

So this means, that there are 2 classes, positive and negative (1024 and -1024) and there are 6 features (jpeg, jpeg2k,

2018-06-04 00:43:29 -0600 commented question Using Regressor along with OpenCV SVM Class

nr_class in allmodel says 2... Hmm, need to recheck what are the 2 classes then.

2018-06-04 00:37:53 -0600 commented question Using Regressor along with OpenCV SVM Class

2 classes? I guess there are 6 classes.

2018-06-04 00:37:00 -0600 commented question Using Regressor along with OpenCV SVM Class

Oh! Yes, @berak ... I think this is a better idea compared to what other options I've. Thanks again for your help and ti

2018-06-03 07:20:11 -0600 commented question Using Regressor along with OpenCV SVM Class

@berak have shared the link. https://github.com/krshrimali/Image-Metrics-BRISQUE

2018-06-03 06:41:41 -0600 commented answer Conversion of C API to C++ API problem

@berak https://github.com/krshrimali/Image-Metrics-BRISQUE Please also note that looks like I've to retrain the model,

2018-06-03 03:28:58 -0600 commented question Using Regressor along with OpenCV SVM Class

Hello again @berak. Well, I've taken database from http://live.ece.utexas.edu/research/Quality/subjective.htm and classe

2018-06-03 02:40:17 -0600 asked a question Using Regressor along with OpenCV SVM Class

Using Regressor along with OpenCV SVM Class There is a function from old libsvm module: score = svm_predict_probabil

2018-06-03 02:40:00 -0600 asked a question Using Regressor along with OpenCV SVM Class

Using Regressor along with OpenCV SVM Class There is a function from old libsvm module: score = svm_predict_probabil

2018-06-03 02:39:50 -0600 asked a question Using Regressor along with OpenCV SVM Class

Using Regressor along with OpenCV SVM Class There is a function from old libsvm module: score = svm_predict_probabil

2018-06-02 04:56:14 -0600 commented answer Conversion of C API to C++ API problem

Ahh, I get that :D That's really a lot of work. Well, yes, brisque features you linked. I'll upload it on GitHub soon.

2018-06-02 04:23:25 -0600 commented answer Conversion of C API to C++ API problem

Well I have updated the code, but don't know why the outputs of both the codes are different. Mind if I share with you

2018-06-02 04:06:59 -0600 commented answer Conversion of C API to C++ API problem

If I want to return the modified image, I can return that image and store in another function, right? Mat img_new = fun

2018-06-02 04:05:40 -0600 commented answer Conversion of C API to C++ API problem

Actually the source code is too long (https://github.com/RentTheRunway/Eigenstyle/tree/master/brisque_revised) - Am tryi

2018-06-02 02:40:24 -0600 marked best answer Conversion of C API to C++ API problem

I have the following lines of code in C API :

  IplImage *imdist_scaled = cvCreateImage(cvSize(orig_bw->width/pow((double)2,itr_scale-1), orig_bw->height/pow((double)2,itr_scale-1)), IPL_DEPTH_64F, 1);
    cvResize(orig_bw, imdist_scaled,CV_INTER_CUBIC);

And I've converted it into C++ API as :

Mat imdist_scaled(Size(orig_bw.cols/cv::pow((double)2, itr_scale-1), orig_bw.rows/pow((double)2, itr_scale-1)), CV_64F, 1);

  resize(orig_bw, imdist_scaled, imdist_scaled.size(), 0, 0, INTER_CUBIC); // INTER_CUBIC
  imdist_scaled.convertTo(imdist_scaled, CV_64FC1); // if not done, then it shows error in later steps
  // depth == 5 || 6 check error in pow function

In first case, when I try to show the image to the screen (imdist_scaled) - it shows me resized image. But in the second case, when I do the same, it shows a blank white image.

When I check the output without using convertTo command, then it works but in the later steps it says depth error, and thus I've converted it to 64F depth, which unfortunately leads it to be a blank white image.

Also note that I've verified orig_bw.cols, orig_bw.rows etc. have correct outputs.

Here orig_bw is a sample image I'm taking.

Why would that be?

2018-06-02 02:38:22 -0600 commented answer Conversion of C API to C++ API problem

Thanks @berak. Have one more doubt, in functions, there is IplImage* object being passed. I'm passing Mat object then.

2018-06-02 02:26:05 -0600 commented question Conversion of C API to C++ API problem

https://stackoverflow.com/a/12851341

2018-06-02 02:25:55 -0600 commented question Conversion of C API to C++ API problem

https://stackoverflow.com/a/12851341

2018-06-02 02:15:52 -0600 received badge  Organizer (source)
2018-06-02 02:15:18 -0600 edited question Conversion of C API to C++ API problem

Conversion of C API to C++ API problem I have the following lines of code in C API : IplImage *imdist_scaled = cvCre

2018-06-02 02:14:18 -0600 edited question Conversion of C API to C++ API problem

Conversion of C API to C++ API problem I have the following lines of code in C API : IplImage *imdist_scaled = cvCre

2018-06-02 02:11:46 -0600 asked a question Conversion of C API to C++ API problem

Conversion of C API to C++ API problem I have the following lines of code in C API : IplImage *imdist_scaled = cvCre

2018-06-02 02:11:36 -0600 asked a question Conversion of C API to C++ API problem

Conversion of C API to C++ API problem I have the following lines of code in C API : IplImage *imdist_scaled = cvCre

2018-06-02 02:11:32 -0600 asked a question Conversion of C API to C++ API problem

Conversion of C API to C++ API problem I have the following lines of code in C API : IplImage *imdist_scaled = cvCre

2018-05-29 04:13:47 -0600 commented answer FacemarkLBF Training fewer landmark points than 68

Okay it works fine now. Thanks, @berak !

2018-05-29 04:07:09 -0600 commented answer FacemarkLBF Training fewer landmark points than 68

I think I get the mistake, I have done a mistake giving values to pupils. Will correct that and let you know. Thanks!