<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/preprocess_ops_3d.py) |

Utils for processing video dataset features.

## Functions

[`crop_image(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/crop_image): Crops the image sequence of images.

[`decode_image(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/decode_image): Decodes PNG or JPEG raw bytes string into a RGB uint8 Tensor.

[`decode_jpeg(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/decode_jpeg): Decodes JPEG raw bytes string into a RGB uint8 Tensor.

[`normalize_image(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/normalize_image): Normalizes images.

[`random_crop_resize(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/random_crop_resize): First crops clip with jittering and then resizes to (output_h, output_w).

[`random_flip_left_right(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/random_flip_left_right): Flips all the frames with a probability of 50%.

[`random_rotation(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/random_rotation): Randomly rotate all frames with 0, 90, 180, or 270 degrees.

[`resize_smallest(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/resize_smallest): Resizes frames so that min(`height`, `width`) is equal to `min_resize`.

[`sample_linspace_sequence(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/sample_linspace_sequence): Samples `num_windows` segments from sequence with linearly spaced offsets.

[`sample_segment_sequence(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/sample_segment_sequence): Samples a single segment of size `num_frames` from a given sequence.

[`sample_sequence(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/preprocess_ops_3d/sample_sequence): Samples a single segment of size `num_steps` from a given sequence.