You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,6 @@ the use of this software, even if advised of the possibility of such damage.
72
72
#include"opencv2/highgui.hpp"
73
73
#include"opencv2/highgui/highgui_c.h"
74
74
#include"opencv2/imgproc.hpp"
75
-
using std::string;
76
75
using caffe::Blob;
77
76
using caffe::Caffe;
78
77
using caffe::Datum;
@@ -185,7 +184,7 @@ namespace cnn_3dobj
185
184
186
185
/** @brief Suit the position of bytes in 4 byte data structure for particular system.
187
186
*/
188
-
CV_WRAP staticuint32_tswapEndian(uint32_t val);
187
+
CV_WRAP staticintswapEndian(int val);
189
188
190
189
/** @brief Create header in binary files collecting the image data and label.
191
190
@param num_item Number of items.
@@ -206,7 +205,7 @@ namespace cnn_3dobj
206
205
@param z Pose label of Z.
207
206
@param isrgb Option for choice of using RGB images or not.
208
207
*/
209
-
CV_WRAP staticvoidwriteBinaryfile(string filenameImg, constchar* binaryPath, constchar* headerPath, int num_item, int label_class, int x, int y, int z, int isrgb);
208
+
CV_WRAP staticvoidwriteBinaryfile(String filenameImg, constchar* binaryPath, constchar* headerPath, int num_item, int label_class, int x, int y, int z, int isrgb);
210
209
};
211
210
212
211
/** @brief Caffe based 3D images descriptor.
@@ -223,13 +222,13 @@ namespace cnn_3dobj
223
222
bool net_set;
224
223
int net_ready;
225
224
cv::Mat mean_;
226
-
string deviceType;
225
+
String deviceType;
227
226
int deviceId;
228
227
229
228
/** @brief Load the mean file in binaryproto format if it is needed.
230
229
@param mean_file Path of mean file which stores the mean of training images, it is usually generated by Caffe tool.
231
230
*/
232
-
voidsetMean(conststring& mean_file);
231
+
voidsetMean(constString& mean_file);
233
232
234
233
/** @brief Wrap the input layer of the network in separate cv::Mat objects(one per channel).
235
234
This way we save one memcpy operation and we don't need to rely on cudaMemcpy2D.
@@ -246,11 +245,11 @@ namespace cnn_3dobj
246
245
@param device_type CPU or GPU.
247
246
@param device_id ID of GPU.
248
247
*/
249
-
descriptorExtractor(conststring& device_type, int device_id = 0);
248
+
descriptorExtractor(constString& device_type, int device_id = 0);
250
249
251
250
/** @brief Get device type information for feature extraction.
252
251
*/
253
-
stringgetDeviceType();
252
+
StringgetDeviceType();
254
253
255
254
/** @brief Get device ID information for feature extraction.
256
255
*/
@@ -260,7 +259,7 @@ namespace cnn_3dobj
260
259
Useful to change device without the need to reload the net.
261
260
@param device_type CPU or GPU.
262
261
*/
263
-
voidsetDeviceType(conststring& device_type);
262
+
voidsetDeviceType(constString& device_type);
264
263
265
264
/** @brief Set device ID information for feature extraction.
266
265
Useful to change device without the need to reload the net. Only used for GPU.
@@ -274,15 +273,15 @@ namespace cnn_3dobj
274
273
@param trained_file Path of prototxt which defining the structure of CNN.
0 commit comments