Commit 1d5fcf0e authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

fct swapEndian should always swap

parent 38787b2a
......@@ -133,9 +133,6 @@ void RawDataReader::setParameters(const RawDataReaderParameters& parameters)
void RawDataReader::swapEndian()
{
if (!_parameters.swap_endian)
return;
const std::size_t nrows = _dataset_out->nRows(), ncols = _dataset_out->nCols();
for (std::size_t i = 0; i < nrows * ncols; ++i) {
......@@ -149,7 +146,6 @@ void RawDataReader::swapEndian()
Eigen::MatrixXi RawDataReader::data(size_t frame)
{
checkInit();
std::string filename = _filenames.at(frame);
......@@ -174,7 +170,8 @@ Eigen::MatrixXi RawDataReader::data(size_t frame)
throw std::runtime_error(err_msg);
}
swapEndian();
if (_parameters.swap_endian)
swapEndian();
switch (_parameters.bpp) {
case 1: return matrixFromData<uint8_t>().cast<int>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment