MCPcopy Create free account
hub / github.com/OAID/Tengine / set_input_buffer

Function set_input_buffer

examples/caffe_wrapper/mtcnn/caffe_mtcnn_utils.cpp:214–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void set_input_buffer(std::vector<cv::Mat>& input_channels, float* input_data, const int height, const int width)
215{
216 for(int i = 0; i < 3; ++i)
217 {
218 cv::Mat channel(height, width, CV_32FC1, input_data);
219 input_channels.push_back(channel);
220 input_data += width * height;
221 }
222}
223
224void cal_pyramid_list(int height, int width, int min_size, float factor, std::vector<scale_window>& list)
225{

Callers 2

run_PNetMethod · 0.85
copy_one_patchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected