Applications/DTIAtlasFiberAnalyzer/DTIAtlasFiberAnalyzerguiwindow.cxx
/************************************************************************************
* TableConversion : Converts table from std::string to double
 ************************************************************************************/
TableConversion : Converts table from std::string to double
TableConversion : Converts table from std :: string to double
QVector< QVector<double> > DTIAtlasFiberAnalyzerguiwindow::TableConversion(v2string table)
{
    QVector <QVector <double> > data;
    QVector <double> line;
    for(unsigned int i=0; i<table.size(); i++)
    {
        for(unsigned int j=0; j<table[i].size(); j++)
            line.push_back(atof(table[i][j].c_str()));
        data.push_back(line);
        line.clear();
    }
    return data;
}
QVector < QVector < double > > DTIAtlasFiberAnalyzerguiwindow :: TableConversion ( v2string table ) { QVector < QVector < double > > data ; QVector < double > line ; for ( unsigned int i = 0 ; i < table . size ( ) ; i ++ ) { for ( unsigned int j = 0 ; j < table [ i ] . size ( ) ; j ++ ) line . push_back ( atof ( table [ i ] [ j ] . c_str ( ) ) ) ; data . push_back ( line ) ; line . clear ( ) ; } return data ; }
TableConversion : Converts table from std::string to double
TableConversion : Converts table from std :: string to double