How to get specific number of seed points using seedwidgetwithcustomcallback?

Hello,

I used seedwidgetwithcustomcallback to get seed points of dicom image.
But I need only 3 seeds and after that it should not take new point.
Could someone please tell me how to do it?

It seems PlacePointEvent used in SeedRepresentation class can take 1000 number of seeds.
Is there any way to change it?

Thanks in advance.

In your vtkSeedCallback class, you can count your 3 seed points, and if this condition is accomplished, the you can avoid vtkCommand::PlacePointEvent event.

It is just an idea … or, remove observers if seed point is great or equal with 3.