CommDepthImage::get_intrinsic should be const:
|
/** |
|
* Get the intrinsic matrix of the color camera. |
|
*/ |
|
inline const arma::mat get_intrinsic() |
|
{ |
|
|
|
arma::mat m(4, 4); |
|
for (size_t i = 0; i < 4; ++i) |
|
{ |
|
for (size_t j = 0; j < 4; j++) |
|
{ |
|
m(i, j) = idl_CommDepthImage.intrinsic_m[i*4 + j]; // _m is 1-dimension! |
|
} |
|
} |
|
|
|
return m; |
|
} |
This lack of a const qualifier affects several other getters across the DomainVision namespace, as far as I can tell.
CommDepthImage::get_intrinsicshould beconst:DomainModelsRepositories/DomainVision/smartsoft/src/DomainVision/CommDepthImage.hh
Lines 203 to 219 in 68b9286
This lack of a
constqualifier affects several other getters across theDomainVisionnamespace, as far as I can tell.