ENH: Optimization for common pixels counting, using intersection from vtkImageLogic and counting pixels method.