Lines Matching full:terminals
145 void cv::cuda::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTransp, GpuMat& top, GpuMat& bottom, GpuMat& labels, GpuMat& buf, Stream& s)
148 CV_Assert(terminals.type() == CV_32S);
150 CV_Assert(terminals.type() == CV_32S || terminals.type() == CV_32F);
153 Size src_size = terminals.size();
156 CV_Assert(leftTransp.type() == terminals.type());
159 CV_Assert(rightTransp.type() == terminals.type());
162 CV_Assert(top.type() == terminals.type());
165 CV_Assert(bottom.type() == terminals.type());
185 nppSafeCall( nppiGraphcut_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(), top.ptr<Npp32s>(), bottom.ptr<Npp32s>(),
186 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
188 if (terminals.type() == CV_32S)
190 nppSafeCall( nppiGraphcut_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(), top.ptr<Npp32s>(), bottom.ptr<Npp32s>(),
191 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
195 nppSafeCall( nppiGraphcut_32f8u(terminals.ptr<Npp32f>(), leftTransp.ptr<Npp32f>(), rightTransp.ptr<Npp32f>(), top.ptr<Npp32f>(), bottom.ptr<Npp32f>(),
196 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
204 void cv::cuda::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTransp, GpuMat& top, GpuMat& topLeft, GpuMat& topRight,
208 CV_Assert(terminals.type() == CV_32S);
210 CV_Assert(terminals.type() == CV_32S || terminals.type() == CV_32F);
213 Size src_size = terminals.size();
216 CV_Assert(leftTransp.type() == terminals.type());
219 CV_Assert(rightTransp.type() == terminals.type());
222 CV_Assert(top.type() == terminals.type());
225 CV_Assert(topLeft.type() == terminals.type());
228 CV_Assert(topRight.type() == terminals.type());
231 CV_Assert(bottom.type() == terminals.type());
234 CV_Assert(bottomLeft.type() == terminals.type());
237 CV_Assert(bottomRight.type() == terminals.type());
257 nppSafeCall( nppiGraphcut8_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(),
260 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
262 if (terminals.type() == CV_32S)
264 nppSafeCall( nppiGraphcut8_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(),
267 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
271 nppSafeCall( nppiGraphcut8_32f8u(terminals.ptr<Npp32f>(), leftTransp.ptr<Npp32f>(), rightTransp.ptr<Npp32f>(),
274 static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );