Vtk point set registration

I tried to use this but I am getting some errors, basically all operations of performRegistration using movingVolumeNode and others are not set.
I am new to slicer, this is the aprroach I am following.
Model → segmentation Node → Segmentation registration.
Is this wrong, or am I missing out on something?