MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / DecodeDatumNative

Function DecodeDatumNative

rtpose_wrapper/src/caffe/util/io.cpp:193–201  ·  view source on GitHub ↗

If Datum is encoded will decoded using DecodeDatumToCVMat and CVMatToDatum If Datum is not encoded will do nothing

Source from the content-addressed store, hash-verified

191// If Datum is encoded will decoded using DecodeDatumToCVMat and CVMatToDatum
192// If Datum is not encoded will do nothing
193bool 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}
202bool DecodeDatum(Datum* datum, bool is_color) {
203 if (datum->encoded()) {
204 cv::Mat cv_img = DecodeDatumToCVMat((*datum), is_color);

Callers 2

mainFunction · 0.85
TEST_FFunction · 0.85

Calls 2

DecodeDatumToCVMatNativeFunction · 0.85
CVMatToDatumFunction · 0.85

Tested by 1

TEST_FFunction · 0.68