sarcgraph.sg.SarcGraph._process_input
- SarcGraph._process_input(file_path=None, raw_frames=None, sigma=1.0, save_output=True)[source]
Loads a video/image and filter all frames.
- Parameters:
file_path (str) – The address of an image or a video file to be loaded
raw_frames (np.ndarray, shape=(frames, dim_1, dim_2, channels)) – Raw input image or video given as a 4 dimensional array
sigma (float) – Standard deviation for Gaussian kernel
save_output (bool) – by default True
- Return type:
np.ndarray, shape=(frames, dim_1, dim_2)