Ask Your Question

davidkim's profile - activity

2019-11-10 02:39:26 -0600 received badge  Famous Question (source)
2019-07-10 19:05:28 -0600 received badge  Popular Question (source)
2018-08-17 19:47:58 -0600 received badge  Student (source)
2017-10-30 22:31:27 -0600 received badge  Notable Question (source)
2017-07-09 08:02:47 -0600 received badge  Popular Question (source)
2016-08-08 16:37:40 -0600 commented question Pixel prime number.

I mean, All images are consist of pixel, which is integer. But I want accurate value. If I want to take pixel value like 0.7, 0.8 , what should I have to do?..

Point is this, Is there anyway to express integer value to more accurate prime number value?

2016-08-08 12:57:34 -0600 asked a question Pixel prime number.

image description

I want to find error between white position and white arrow. It's difference will be integer.

But i want to know exact error like prime number. Is there any way to express prime number in pixel image?

2016-07-08 19:33:43 -0600 asked a question Plotting graph in opencv

I wonder that is there any plot function in opencv?

Somebody told me that it;s gonna pretty hard to plot in opencv

image description

This is picture what i want to plot...

I heard that there is plot function in version 3.xxx opencv.

http://www.shervinemami.info/graphs.html

above link is also containing graph library. but i have error with library direction. i'm not sure where should i have to put library...

THank you..!

2016-07-08 12:05:50 -0600 received badge  Enthusiast
2016-07-05 18:38:37 -0600 asked a question Error in multiple object template matching

Hi. i'm looking for the way to find unit cell in image. First i read Image like this. and I drag in image like this. image description(/upfiles/14677617226029431.jpg)(/upfiles/14677617157258509.jpg)image description

I want to find the multiple object in image by using template matching. Sometimes it success to find unit cell. but sometimes it fail to find it. I think it depends on the size of unit cell.. Error is like this.. image description

COuld you help me to make this code reliable?

2016-07-01 19:08:50 -0600 asked a question I want to know how to apply phase correlation with difference size image.

image description

I want to apply phase correlation in this picture which size is totally different.

Actually, my final goal is like thisimage description(/upfiles/14674180167669987.png)

I want to apply phase correlation with unit cell. Finally, I can find linearity of this picture.

2016-06-30 16:49:45 -0600 asked a question is there any function convert double matrix to integer matrix or round off matrix?

thank you for answering

2016-06-30 14:05:48 -0600 commented question I want to know if there is round off function in opencv.

i'm looking for how to define it.. in http://docs.opencv.org/2.4/modules/co...

Mat matrix1(Size(256, 256), CV_64F, matrix); //change array to matrix

I made matrix which is defined like that, matrix is double type number.

If it is ok could u tell me how to write to int8 or 32..?

thnx a lot :)

2016-06-30 12:47:25 -0600 asked a question I want to know if there is round off function in opencv.

I read double type data and I want to normalize it.

But before that I need to round off , I mean I want to remove digit under the point.

in C++, there is floor and ceil , but it doesn't work in a matrix.

Please tell me is there ceil or floor function for a matrix.

Thnx

2016-06-29 20:40:29 -0600 asked a question I have problem with changing array to matrix.

I read data file to array matrix[][].

cout << matrix[0][0]<<"   "<< matrix[0][1] << endl;
Mat matrix1(Size(256, 256), CV_32F, matrix);// = Mat(256, 256, CV_32FC1, matrix);
cout << matrix1 << endl;**strong text**

in here, my data type is like below. -8.10E-10 1.62E-09 -2.00E-10 4.01E-10 -1.42E-09 1.77E-09 1.08E-09 6.10E-10 -1.67E-09 -5.56E-10 3.52E-10 -5.08E-10 7.58E-10 -9.43E-10 4.29E-10 -2.52E-10 -1.09E-09 -7.39E-10 -1.49E-09 -1.12E-09 1.62E-10

What type of CV_xx do i have to use?.

2016-06-29 20:40:29 -0600 asked a question I have problem with changing array data to matrix.

I have a problem with changing array to matrix because array data type is not proper...

could you help me?

#include <iostream>  // for cout, getline
#include <sstream>  // for istringstream
#include <string>   // for string
#include <opencv2\highgui\highgui.hpp>
#include <fstream>
#include <stdio.h>

using namespace std; using namespace cv;

int main() { std::ifstream file("cell2.txt"); // assume the file opens correctly

double matrix[256][256];

int row = 0, col = 0;
Mat abs_val;
Mat dst(256, 256, CV_32F);

//double dst[256][256];

std::string line;


while (std::getline(file, line)) {  // read each line from the file

    std::istringstream stream(line);

    double x;
    col = 0;  // reset column counter
    while (stream >> x) {  // keep trying to read ints until there are no more
        matrix[row][col] = x;
        col++;
        }

    row++;
}

Mat matrix1(Size(256, 256), CV_32F, matrix);// = Mat(256, 256, CV_32FC1, matrix);
cout << matrix1 << endl;

system("pause >nul");
return 0;

}

in here when I change the array to the matrix, message data is not read properly...

0.0448286 0.0437008 0.0430881 0.0448606 0.0383793 0.044633 0.0411747 0.0460828 0.0449244 0.042626 0.0447564 0.0404438 0.0397293 0.0428335 0.0440014 0.0427125 0.039638 0.0450739 0.0387029 0.0405195

data type is like this.

Could you tell me problem or change type instead CV_32F?

2016-06-29 20:40:28 -0600 asked a question I have problem with changing array to matrix.

i have problem with changing array to matrix because array data type is not proper...

coudl you help me?

include <iostream> // for cout, getline

include <sstream> // for istringstream

include <string> // for string

include <opencv2\highgui\highgui.hpp>

include <fstream>

include <stdio.h>

using namespace std; using namespace cv;

int main() { std::ifstream file("cell2.txt"); // assume the file opens correctly

double matrix[256][256];

int row = 0, col = 0;
Mat abs_val;
Mat dst(256, 256, CV_32F);

//double dst[256][256];

std::string line;

//자료 읽기//
while (std::getline(file, line)) {  // read each line from the file

    std::istringstream stream(line);

    double x;
    col = 0;  // reset column counter
    while (stream >> x) {  // keep trying to read ints until there are no more
        matrix[row][col] = x;
        col++;
        }

    row++;
}

Mat matrix1(Size(256, 256), CV_32F, matrix);// = Mat(256, 256, CV_32FC1, matrix);
cout << matrix1 << endl;

system("pause >nul");
return 0;

}

in here when i change array to matrix, message data is not read properly...

0.0448286 0.0437008 0.0430881 0.0448606 0.0383793 0.044633 0.0411747 0.0460828 0.0449244 0.042626 0.0447564 0.0404438 0.0397293 0.0428335 0.0440014 0.0427125 0.039638 0.0450739 0.0387029 0.0405195

data type is like this.

Could you tell me problem or change type instead CV_32F?

2016-06-29 20:40:28 -0600 commented answer how to read matrix from text file to Mat in opencv

THnx a lot. If i want to read file which has number like 0.0425098 0.0456149 , i want to know what type of CV_xxX do i have to use.