The Wayback Machine - https://web.archive.org/web/20210517090658/https://github.com/topics/image-processing
Skip to content
#

Image processing

Digital image processing is the use of algorithms to make computers analyze the content of digital images.

Here are 9,765 public repositories matching this topic...

albumentations
Pomax
Pomax commented Apr 30, 2021

Description

when using structural_similarity when the images are small (<7 in any dimension) a ValueError gets thrown, but with the wrong text:

ValueError: win_size exceeds image extent.  If the input is a multichannel (color) image, set multichannel=True.

Instead of misleading the user into thinking there's something wrong with the way they read in, or converted, their i

arubior
arubior commented May 12, 2021

🚀 Feature

Adding a boolean input argument keepdim to the tensor_to_image() function to avoid squeezing tensors with batch size 1.

Motivation

While the image_to_tensor() function has a keepdim argument that avoids turning (H, W, C ) images into (1, C, H, W) tensors, there is nothing similar in tensor_to_image() to avoid turning tensors (1, C, H, W) into arrays (H, W, C). Curren