tf.image.crop_and_resize处理 2D 图像,它是一个形状为 的 4-D 张量[batch, image_height, image_width, depth]。
但是,我想处理 3D 图像,它是一个 5-D 张量 shape [batch, image_height, image_width, image_depth, 1]。我的盒子是[y1, x1, z1, y2, x2, z2]。我的crop_size 是[crop_height, crop_width, crop_depth]。
如何裁剪 3D 图像并调整其大小?谢谢!
| 归档时间: |
|
| 查看次数: |
315 次 |
| 最近记录: |