MCPcopy Create free account
hub / github.com/AIRLegend/aitrack / transpose

Method transpose

AITracker/src/imageprocessor.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void ImageProcessor::transpose(float* from, float* dest, int dim)
35{
36 int stride = 224 * 224;
37
38 for (int c = 0; c < 3; c++)
39 {
40 for (int i = 0; i < 224 * 224; i++)
41 {
42 dest[i + stride*c] = from[c + i*3];
43 }
44 }
45}
46
47

Callers 2

detect_faceMethod · 0.80
detect_landmarksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected