1 #ifndef OPENPOSE_POSE_POSE_PARAMETERS_RENDER_HPP
2 #define OPENPOSE_POSE_POSE_PARAMETERS_RENDER_HPP
16 #define POSE_BODY_25_PAIRS_RENDER_GPU \
17 1,8, 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 8,9, 9,10, 10,11, 8,12, 12,13, 13,14, 1,0, 0,15, 15,17, 0,16, 16,18, 14,19,19,20,14,21, 11,22,22,23,11,24
18 #define POSE_BODY_25_SCALES_RENDER_GPU 1
19 #define POSE_BODY_25_COLORS_RENDER_GPU \
46 #define POSE_COCO_PAIRS_RENDER_GPU \
47 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12, 12,13, 1,0, 0,14, 14,16, 0,15, 15,17
48 #define POSE_COCO_SCALES_RENDER_GPU 1
49 #define POSE_COCO_COLORS_RENDER_GPU \
70 #define POSE_MPI_PAIRS_RENDER_GPU \
71 0,1, 1,2, 2,3, 3,4, 1,5, 5,6, 6,7, 1,14, 14,8, 8,9, 9,10, 14,11, 11,12, 12,13
72 #define POSE_MPI_SCALES_RENDER_GPU 1
73 #define POSE_MPI_COLORS_RENDER_GPU \
90 #define POSE_BODY_19_PAIRS_RENDER_GPU \
91 1,8, 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 8,9, 9,10, 10,11, 8,12, 12,13, 13,14, 1,0, 0,15, 15,17, 0,16, 16,18
92 #define POSE_BODY_19_SCALES_RENDER_GPU 1
93 #define POSE_BODY_19_COLORS_RENDER_GPU \
114 #define POSE_BODY_23_PAIRS_RENDER_GPU \
115 1,7, 4,10, 0,1, 0,4, 1,2, 2,3, 4,5, 5,6, 7,8, 8,9, 10,11, 11,12, 0,13, 13,15, 0,14, 14,16, 12,17,17,18,12,19, 9,20,20,21,9,22
116 #define POSE_BODY_23_SCALES_RENDER_GPU 1
117 #define POSE_BODY_23_COLORS_RENDER_GPU \
144 #define POSE_BODY_25B_PAIRS_RENDER_GPU \
145 0,1, 0,2, 1,3, 2,4, 5,7, 6,8, 7,9, 8,10, 5,11, 6,12, 11,13, 12,14, 13,15, 14,16, \
146 15,19, 19,20, 15,21, 16,22, 22,23, 16,24, 5,17, \
148 #define POSE_BODY_25B_SCALES_RENDER_GPU 1
149 #define POSE_BODY_25B_COLORS_RENDER_GPU \
190 #define POSE_BODY_135_PAIRS_RENDER_GPU \
191 0,1, 0,2, 1,3, 2,4, 5,7, 6,8, 7,9, 8,10, 5,11, 6,12, 11,13, 12,14, 13,15, 14,16, \
192 15,19, 19,20, 15,21, 16,22, 22,23, 16,24, 5,6, 17,18, 11,12, \
194 9,H135+0, H135+0,H135+1, H135+1,H135+2, H135+2,H135+3, 9,H135+4, H135+4,H135+5, H135+5,H135+6, H135+6,H135+7, \
195 9,H135+8, H135+8,H135+9, H135+9,H135+10, H135+10,H135+11, 9,H135+12, H135+12,H135+13, H135+13,H135+14, H135+14,H135+15, \
196 9,H135+16, H135+16,H135+17, H135+17,H135+18, H135+18,H135+19, \
198 10,H135+20, H135+20,H135+21, H135+21,H135+22, H135+22,H135+23, 10,H135+24, H135+24,H135+25, H135+25,H135+26, H135+26,H135+27, \
199 10,H135+28, H135+28,H135+29, H135+29,H135+30, H135+30,H135+31, 10,H135+32, H135+32,H135+33, H135+33,H135+34, H135+34,H135+35, \
200 10,H135+36, H135+36,H135+37, H135+37,H135+38, H135+38,H135+39, \
202 F135+0,F135+1, F135+1,F135+2, F135+2,F135+3, F135+3,F135+4, F135+4,F135+5, F135+5,F135+6, F135+6,F135+7, F135+7,F135+8, F135+8,F135+9, F135+9,F135+10, F135+10,F135+11, F135+11,F135+12, F135+12,F135+13, F135+13,F135+14, F135+14,F135+15, F135+15,F135+16, F135+17,F135+18, F135+18,F135+19, F135+19,F135+20, \
203 F135+20,F135+21, F135+22,F135+23, F135+23,F135+24, F135+24,F135+25, F135+25,F135+26, F135+27,F135+28, F135+28,F135+29, F135+29,F135+30, F135+31,F135+32, F135+32,F135+33, F135+33,F135+34, F135+34,F135+35, F135+36,F135+37, F135+37,F135+38, F135+38,F135+39, F135+39,F135+40, F135+40,F135+41, \
204 F135+41,F135+36, F135+42,F135+43, F135+43,F135+44, F135+44,F135+45, F135+45,F135+46, F135+46,F135+47, F135+47,F135+42, F135+48,F135+49, F135+49,F135+50, F135+50,F135+51, F135+51,F135+52, F135+52,F135+53, F135+53,F135+54, F135+54,F135+55, F135+55,F135+56, F135+56,F135+57, F135+57,F135+58, \
205 F135+58,F135+59, F135+59,F135+48, F135+60,F135+61, F135+61,F135+62, F135+62,F135+63, F135+63,F135+64, F135+64,F135+65, F135+65,F135+66, F135+66,F135+67, F135+67,F135+60
207 #define POSE_BODY_135_SCALES_RENDER_GPU \
208 1.f,1.f,1.f,1.f,1.f, 1.f,1.f,1.f,1.f,1.f, 1.f,1.f,1.f,1.f,1.f, 1.f,1.f, \
210 1.f,1.f,1.f,1.f,1.f,1.f, \
211 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, \
212 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, 0.60f,0.60f,0.60f,0.60f,0.60f, \
213 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, \
214 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, \
215 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f, \
216 0.45f,0.45f,0.45f,0.45f,0.45f, 0.45f,0.45f,0.45f,0.45f,0.45f
219 #define POSE_BODY_135_COLORS_RENDER_GPU \
289 255.f, 255.f, 255.f, \
290 255.f, 255.f, 255.f, \
291 255.f, 255.f, 255.f, \
292 255.f, 255.f, 255.f, \
293 255.f, 255.f, 255.f, \
294 255.f, 255.f, 255.f, \
295 255.f, 255.f, 255.f, \
296 255.f, 255.f, 255.f, \
297 255.f, 255.f, 255.f, \
298 255.f, 255.f, 255.f, \
299 255.f, 255.f, 255.f, \
300 255.f, 255.f, 255.f, \
301 255.f, 255.f, 255.f, \
302 255.f, 255.f, 255.f, \
303 255.f, 255.f, 255.f, \
304 255.f, 255.f, 255.f, \
305 255.f, 255.f, 255.f, \
306 255.f, 255.f, 255.f, \
307 255.f, 255.f, 255.f, \
308 255.f, 255.f, 255.f, \
309 255.f, 255.f, 255.f, \
310 255.f, 255.f, 255.f, \
311 255.f, 255.f, 255.f, \
312 255.f, 255.f, 255.f, \
313 255.f, 255.f, 255.f, \
314 255.f, 255.f, 255.f, \
315 255.f, 255.f, 255.f, \
316 255.f, 255.f, 255.f, \
317 255.f, 255.f, 255.f, \
318 255.f, 255.f, 255.f, \
319 255.f, 255.f, 255.f, \
320 255.f, 255.f, 255.f, \
321 255.f, 255.f, 255.f, \
322 255.f, 255.f, 255.f, \
323 255.f, 255.f, 255.f, \
324 255.f, 255.f, 255.f, \
325 255.f, 255.f, 255.f, \
326 255.f, 255.f, 255.f, \
327 255.f, 255.f, 255.f, \
328 255.f, 255.f, 255.f, \
329 255.f, 255.f, 255.f, \
330 255.f, 255.f, 255.f, \
331 255.f, 255.f, 255.f, \
332 255.f, 255.f, 255.f, \
333 255.f, 255.f, 255.f, \
334 255.f, 255.f, 255.f, \
335 255.f, 255.f, 255.f, \
336 255.f, 255.f, 255.f, \
337 255.f, 255.f, 255.f, \
338 255.f, 255.f, 255.f, \
339 255.f, 255.f, 255.f, \
340 255.f, 255.f, 255.f, \
341 255.f, 255.f, 255.f, \
342 255.f, 255.f, 255.f, \
343 255.f, 255.f, 255.f, \
344 255.f, 255.f, 255.f, \
345 255.f, 255.f, 255.f, \
346 255.f, 255.f, 255.f, \
347 255.f, 255.f, 255.f, \
348 255.f, 255.f, 255.f, \
349 255.f, 255.f, 255.f, \
350 255.f, 255.f, 255.f, \
351 255.f, 255.f, 255.f, \
352 255.f, 255.f, 255.f, \
353 255.f, 255.f, 255.f, \
354 255.f, 255.f, 255.f, \
355 255.f, 255.f, 255.f, \
356 255.f, 255.f, 255.f, \
357 255.f, 255.f, 255.f, \
361 #define POSE_CAR_12_PAIRS_RENDER_GPU \
362 4,5, 4,6, 4,0, 0,2, 4,8, 8,10, 5,7, 5,1, 1,3, 5,9, 9,11, 0,1, 8,9, 2,3, 6,7, 10,11, 6,2,7,3, 6,10,7,11
364 #define POSE_CAR_12_SCALES_RENDER_GPU 0.5
365 #define POSE_CAR_12_COLORS_RENDER_GPU \
382 #define POSE_CAR_22_PAIRS_RENDER_GPU \
383 0,1,1,3,3,2,2,0, 6,7,7,16,16,17,17,6, 12,13,13,14,14,15,15,12, 6,8,7,8,6,9,7,9,6,4,7,5, 12,11,13,10, \
384 16,18,17,18,16,19,17,19, 6,21,7,20
385 #define POSE_CAR_22_SCALES_RENDER_GPU 0.625
386 #define POSE_CAR_22_COLORS_RENDER_GPU \
387 255.f, 128.f, 128.f, \
396 128.f, 128.f, 255.f, \
405 255.f, 128.f, 128.f, \
OP_API const std::vector< float > & getPoseScales(const PoseModel poseModel)
OP_API const std::vector< unsigned int > & getPoseBodyPartPairsRender(const PoseModel poseModel)
const auto POSE_DEFAULT_ALPHA_KEYPOINT
OP_API const std::vector< float > & getPoseColors(const PoseModel poseModel)
OP_API unsigned int getNumberElementsToRender(const PoseModel poseModel)
const auto POSE_DEFAULT_ALPHA_HEAT_MAP