Ask Your Question

DonCossack's profile - activity

2013-12-27 07:09:56 -0600 commented question CvMlData read_csv in java

Well it seems so..

Do you have any suggestion on the alternative method?

The purpose is to construct a training set database so that I can apply the matching algorithm on the input.

2013-12-27 05:31:10 -0600 asked a question CvMlData read_csv in java

Hi

I would like to ask how to read the csv file in java environment? As the opencv docs said, we can use CvMldata read_csv(), it is available for both C/C++ and Python. However, I searched on the docs for java, there is not the equivalent.

Any suggestions, if you please?

I would like to add the database for my feature matching algorithm.

Thanks

2013-12-18 04:27:51 -0600 asked a question Nearest Neighbors Ratio in Java

Hi.

I am doing the feature matching with OpenCV in Java and it gets stuck into one point. After performing the detection, descriptor computation and matching, the result is a List<matofdmatch> and I am not quite sure how to handle this to remove "bad matches".

List<MatOfDMatch> listofmatches=new ArrayList<MatOfDMatch>();

    int k=2;

    BruteForce.knnMatch(descriptor1, descriptor2, listofmatches,k);

descriptor1 is Mat, which belongs to querry image and descriptor2 is train image.

How should I handle the listofmatches to remove bad matches? It is a little different as in C++.

Thank you very much

2013-12-11 07:53:59 -0600 commented answer Compare pixel value with threshold in Java

Thanks.

I already did that, it is takes 2 steps more but anyhow it is still O.K. :D

2013-12-11 07:53:07 -0600 received badge  Supporter (source)
2013-12-11 07:52:58 -0600 received badge  Scholar (source)
2013-12-11 01:52:57 -0600 commented answer Compare pixel value with threshold in Java

Yes, it is true, the function is handy. However there is one thing that is, all the value which is smaller than threshold is put to zero. In my case I only want to "locate" the point which is smaller than threshold.

2013-12-10 12:22:05 -0600 received badge  Editor (source)
2013-12-10 12:21:28 -0600 asked a question Compare pixel value with threshold in Java

Dear.

As some algorithm requires, e.g Harris corner detection, it is necessary to compare pixel value with a defined threshold. I know that in C++ it can be done quickly with command

if(image.at<float>(i,j) > int thres){}

But I have some problems doing it in Java, as I found only one command is

double [] pixel=image.get(int i, int j);

Could you please let me know how to perform comparision in this case?

Or in the doc of opencv, it is stated that the output could be int if

int pixel= image.get(int i, int j, byte[] data);

but I am not sure what to do with the parameter byte[] data.

Regards