ENH: added utility function for seed initialization

See issue 2454. This utility function is for optimized seed initialization, as
compared to traversing the image from the python Editor effect code.


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21701 3bd1e089-480b-0410-8dfb-8563597acbee