If Datum is encoded will decoded using DecodeDatumToCVMat and CVMatToDatum If Datum is not encoded will do nothing
| 191 | // If Datum is encoded will decoded using DecodeDatumToCVMat and CVMatToDatum |
| 192 | // If Datum is not encoded will do nothing |
| 193 | bool DecodeDatumNative(Datum* datum) { |
| 194 | if (datum->encoded()) { |
| 195 | cv::Mat cv_img = DecodeDatumToCVMatNative((*datum)); |
| 196 | CVMatToDatum(cv_img, datum); |
| 197 | return true; |
| 198 | } else { |
| 199 | return false; |
| 200 | } |
| 201 | } |
| 202 | bool DecodeDatum(Datum* datum, bool is_color) { |
| 203 | if (datum->encoded()) { |
| 204 | cv::Mat cv_img = DecodeDatumToCVMat((*datum), is_color); |