File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -141,22 +141,14 @@ dense_crf_wrapper(PyObject *self, PyObject *args)
141
141
(unsigned char *)arr_I->data );
142
142
MatrixXf probMapsMatrix = crf3d.inference (MaxIterations);
143
143
VectorXs segmentationVector = crf3d.currentMap (probMapsMatrix);
144
- <<<<<<< HEAD
145
144
npy_intp outshape[3 ];
146
145
outshape[0 ] = shape_P[0 ];
147
146
outshape[1 ] = shape_P[1 ];
148
147
outshape[2 ] = shape_P[2 ];
149
148
PyArrayObject * labels = (PyArrayObject*) PyArray_SimpleNew (3 , outshape, NPY_INT8);
150
- =======
151
-
152
- npy_intp shape_labels[] = {shape_P[0 ], shape_P[1 ], shape_P[2 ]};
153
- PyArrayObject * labels = (PyArrayObject*) PyArray_SimpleNew (3 , shape_labels, NPY_INT8);
154
- npy_int8 * c_labels = (npy_int8*) PyArray_BYTES (labels);
155
-
156
- >>>>>>> ff90555cc694db682481a9d64d21b7f08458c7cc
157
149
for (int i = 0 ; i < num_voxel; i++)
158
150
{
159
- c_labels[i] = (npy_int8) segmentationVector (i);
151
+ *(labels-> data + i) = segmentationVector (i);
160
152
}
161
153
162
154
Py_DECREF (arr_I);
You can’t perform that action at this time.
0 commit comments