nanshe/advanced_image_processing.py: Convert NumPy parameter types to C types for SPAMS.