spyrit.misc.disp

Functions

Multi_plots(img_list, title_list, shape[, ...])

add_colorbar(mappable[, position, size])

Example:

blue_box(f[, amp_max, box_color])

Add a colored box overlay to an image for visualization purposes.

compare_video_frames(vid_list, ...[, ...])

contrib_map(H_dyn, n[, save_figs, path_fig, ...])

Generate a contribution map showing measurement pattern coverage.

display_rgb_vid(video, fps[, title])

video is a numpy array of shape [nb_frames, 3, nx, ny]

display_vid(video, fps[, title, colormap])

video is a numpy array of shape [nb_frames, 1, nx, ny]

error_map(img1, img2[, save_figs, path_fig, ...])

Compute and visualize error map between two images.

fitPlots(N[, aspect])

get_frame(movie_path[, frame_number])

Extract a specific frame from a video file.

histogram(s)

imagecomp(Img1, Img2[, suptitle, title1, ...])

imagepanel(Img1, Img2, Img3, Img4[, ...])

imagesc(Img[, title, colormap, show, ...])

Display image data with scaled colors, a colormap, and a colorbar, similar to MATLAB's imagesc function.

noaxis(axs)

plot(x, y[, title, xlabel, ylabel, color])

pre_process_video(video, crop_patch, kernel_size)

print_mean_std(x[, tag, prec])

save_field_video(def_field, out_path, n_frames)

Save deformation field as a quiver video.

save_motion_video(x_motion, out_path[, ...])

Save x_motion of shape (1, n_frames, c, h, w) as a video file.

string_mean_std(x[, prec])

torch2numpy(torch_tensor)

uint8(dsp)

vid2batch(root, img_dim, start_frame, end_frame)