To use cy->GetOutput()
, you must call Update()
beforehand:
cy->Update();
With SetInputConnection()
the upstream update is automatic. But with SetInputData()
, you must do the upstream update yourself. That’s the main difference between SetInputConnection()
and SetInputData()
.