예제 #1
0
    //デバッグ用
    public void OnRenderObject()
    {
        int scaleNum = 0;

        //NNに入力するデータの確認用
        if (DrawInputTensorBuff)
        {
            debugRenderer.DebugDrawInputTensorBuff(vnect.nnInputBuff, vnect.NN_INPUT_HEIGHT_MAX, vnect.NN_INPUT_WIDTH_MAX);
        }
        //NNから出力されたデータの確認用
        if (DebugDrawHeatmap)
        {
            //debugRenderer.DebugDrawHeatmap(vnect.nnOutputPtr, vnect.nnShapeScales, scaleNum, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_JOINT_COUNT);
            //debugRenderer.DebugDrawHeatmap2(vnect.nnOutputPtr, vnect.nnShapeScales, scaleNum, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_POOL_SIZE, jointInfos);
            debugRenderer.DebugDrawHeatmapSide(vnect.nnOutputPtr, vnect.nnShapeScales, scaleNum, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_JOINT_COUNT);
        }
        //処理用バッファの確認用
        else if (DebugDrawHeatmapBuff)
        {
            debugRenderer.DebugDrawHeatmapBuff(vnect.heatmapBuff, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_JOINT_COUNT);
            //debugRenderer.DebugDrawHeatmapBuff2(vnect.heatmapBuff, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_POOL_SIZE, jointInfos);
        }
        //ラベリング用バッファの確認用
        else if (DebugDrawHeatmapLabel)
        {
            debugRenderer.DebugDrawHeatmapLabel(vnect.heatmapLabel, vnect.heatmapLabelCount, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_JOINT_COUNT);
            //debugRenderer.DebugDrawHeatmapLabel2(vnect.heatmapLabel, vnect.heatmapLabelCount, vnect.heatmapHeight, vnect.heatmapWidth, vnect.NN_POOL_SIZE, jointInfos);
        }
        //2Dジョイントの確認用
        if (DebugDrawResults2D)
        {
            //debugRenderer.DrawResults2D(vnect.joint2D, jointInfos);
            debugRenderer.DrawResults2DSide(vnect.joint2D, jointInfos);
        }
        //3Dジョイントの確認用
        if (DebugDrawResults3D)
        {
            //debugRenderer.DrawResults3D(vnect.joint3D, jointInfos);
            debugRenderer.DrawResults3DSide(vnect.joint2D, vnect.joint3D, jointInfos);
        }
    }