Python - Quick Upscaling of Array with Numpy, No Image Libary Allowed [duplicate]
问题 This question already has answers here : How to repeat elements of an array along two axes? (5 answers) Closed 2 years ago . Note on duplicate message: Similar themes, not exactly a duplicate. Esp. since the loop is still the fastest method. Thanks. Goal: Upscale an array from [small,small] to [big,big] by a factor quickly, don't use an image library. Very simple scaling, one small value will become several big values, after it is normalized for the several big values it becomes. In other