nanshe/advanced_image_processing.py: Avoid allocation of another temporary for vigra.filters.lineRankOrderFilter by copying in the result.
nanshe/advanced_image_processing.py: Changed erosion_structure and dilation_structure to bool types.