update cmakelist
This commit is contained in:
@@ -140,7 +140,7 @@ void HandyMan::SR_CalPlaneCoeff()
|
||||
|
||||
void HandyMan::SR_RGB2CPT()
|
||||
{
|
||||
gctl::text_content tc;
|
||||
gctl::dsv_io tc;
|
||||
std::string rgb_file, cpt_file;
|
||||
std::cout << "Name of the RGB series file (Each line of file contains a R G B group).\n>> ";
|
||||
std::cin >> rgb_file;
|
||||
@@ -149,12 +149,12 @@ void HandyMan::SR_RGB2CPT()
|
||||
std::cin >> cpt_file;
|
||||
|
||||
tc.load_text(rgb_file);
|
||||
std::vector<double> R(tc.contents_.size()), G(tc.contents_.size()), B(tc.contents_.size());
|
||||
for (size_t i = 0; i < tc.contents_.size(); i++)
|
||||
{
|
||||
gctl::parse_string_to_value(tc.contents_[i], ' ', true, R[i], G[i], B[i]);
|
||||
}
|
||||
int c_size = R.size();
|
||||
int c_size = tc.row_number();
|
||||
|
||||
gctl::array<double> R, G, B;
|
||||
tc.get_column(R, 0);
|
||||
tc.get_column(G, 1);
|
||||
tc.get_column(B, 2);
|
||||
|
||||
int i_type;
|
||||
std::cout << "Interpolation type of the interval values.\n(1) linear\n(2) data\n>> ";
|
||||
@@ -209,9 +209,11 @@ void HandyMan::SR_RGB2CPT()
|
||||
|
||||
tc.clear();
|
||||
tc.load_text(f_name);
|
||||
std::vector<double> D, D_ori;
|
||||
gctl::str2type_vector(tc.contents_, D_ori);
|
||||
|
||||
gctl::array<double> D_ori;
|
||||
tc.get_column(D_ori, 0);
|
||||
|
||||
std::vector<double> D;
|
||||
D.reserve(D_ori.size());
|
||||
for (size_t i = 0; i < D_ori.size(); i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user