Skip to content

Documentation for Torqueo Plotting Utilities

check_format

check_format(arr)

Ensure numpy array and move channels to the last dimension if they are in the first dimension.

clip_percentile

clip_percentile(img, percentile=0.1)

Clip pixel values to specified percentile range.

normalize

normalize(image)

Normalize image to 0-1 range.

show

show(img, norm=False, **kwargs)

Display image with normalization and channels in the last dimension.

to_numpy

to_numpy(tensor)

Ensure tensor is on CPU and convert to NumPy.