We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def _crop_to_bounding_box(mask, bbox_min, bbox_max): """Crops a 2D or 3D mask to the bounding box specified by bbox_{min,max}."""
bbox_{min,max}
TODO: This is correct only if the object is interior to the
cropmask = np.zeros((bbox_max - bbox_min) + 2, np.uint8)
The text was updated successfully, but these errors were encountered:
Fix uncommented todo
6d1331c
Should fix google-deepmind#6
This is still unfixed...
Sorry, something went wrong.
No branches or pull requests
def _crop_to_bounding_box(mask, bbox_min, bbox_max):
"""Crops a 2D or 3D mask to the bounding box specified by
bbox_{min,max}
."""we need to zeropad the cropped region with 1 voxel at the lower,
the right (and the back on 3D) sides. This is required to obtain the
"full" convolution result with the 2x2 (or 2x2x2 in 3D) kernel.
TODO: This is correct only if the object is interior to the
bounding box.
cropmask = np.zeros((bbox_max - bbox_min) + 2, np.uint8)
TODO ......
The text was updated successfully, but these errors were encountered: