Download data/code/functions/applyCropping.m from introvoyz041/DissectionPhotoVolumes: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/introvoyz041/DissectionPhotoVolumes/resolve/main/data/code/functions/applyCropping.m
- Command line
-
hf download hf://datasets/introvoyz041/DissectionPhotoVolumes/data/code/functions/applyCropping.m
-
curl -L -o applyCropping.m https://huggingface.co/datasets/introvoyz041/DissectionPhotoVolumes/resolve/main/data/code/functions/applyCropping.m
396 Bytes
| %%%%%%%%%%%%%%%%%%%%%%% | |
| % AUXILIARY FUNCTIONS % | |
| %%%%%%%%%%%%%%%%%%%%%%% | |
| % This functions crops a 3d volume using the boundaries provided by | |
| % CropLabelVol | |
| % Icropped=applyCropping(I,cropping) | |
| function Icropped=applyCropping(I,cropping) | |
| i1=cropping(1); | |
| j1=cropping(2); | |
| k1=cropping(3); | |
| i2=cropping(4); | |
| j2=cropping(5); | |
| k2=cropping(6); | |
| Icropped=I(i1:i2,j1:j2,k1:k2,:,:,:,:,:,:,:,:,:,:); | |
| end | |