Comments (6)
Thank you for the clarification! I got it now. One of those situations where you hit send and immediately realize what something actually means 😅
from spinalcordtoolbox.
While I agree that label
isn't the clearest name, I don't think it's so bad that we need to change it? Personally, I'm happy with starting with documentation changes for now.
from spinalcordtoolbox.
you’re not missing anything— as the help says: the expected output of the ‘label’ option is a single point (ie: center of mass of the blob)
from spinalcordtoolbox.
I'll open up a quick PR to clarify the help and provide an example.
from spinalcordtoolbox.
I think for me, I had the same misunderstanding as the greedy registration tool has the option of specifying the label option for the interpolation mode as well, but here it is used in order to interpolate masks to a different space, which differs from the use case / or functionality provided with the -x label
option for sct_apply_transfo's label option.
I am unsure if other toolboxes have a similar understanding or if this is unique to greedy or SCT, respectively.
from spinalcordtoolbox.
I guess the problem comes from the word 'label', which is not specific at all to a 'single voxel'. It would have been better to call this option 'single-voxel', but it might be too late now (or is it? not so many people use this, so it won't break too many pipelines...)
from spinalcordtoolbox.
Related Issues (20)
- Improve angle estimation for slicewise registration
- Replace deepseg MS lesion seg model
- `ValueError`: `module://matplotlib_inline.backend_inline is not a valid value` when running SCT scripts in Jupyter notbooks HOT 11
- Cannot checkout a release HOT 5
- Reuse of warping field should not happen if SCT version evolved HOT 2
- Label-based transformation during template registration is wrong HOT 14
- Different results when using `sct_deepseg` models trained with nnUNet in 3D Slicer HOT 1
- `ValueError: shapes not aligned` when generating QC report for BOLD data HOT 3
- Update documentation to explain how to integrate nnUNet models into 3D Slicer HOT 8
- Deprecate `sct_deepseg_{sc,lesion,gm}` and move the models to `sct_deepseg`
- Deduplicate "sct_apply_transfo + label dilation" code snippet in `sct_register_to_template` script
- Track upstream packages to determine when we can upgrade to `numpy==2.0.0` HOT 3
- How to run pytest via VSCode? HOT 10
- PermissionError: [Errno 13] Permission denied: '/tmp/sct_qc.00.lock' during QC report generation on `joplin` HOT 4
- Move caching logic from callers to `sct_straighten_spinalcord` itself
- Add edge (mirror) padding as preprocessing before inference for monai models HOT 1
- `sct_download_data` deletes the contents of the output folder by default, which is dangerous when combined with `-o` HOT 3
- `keep_largest_object` function exists in two scripts HOT 1
- Add entry `-p sct_deepseg` HOT 2
- Flattening changes the image intensity value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spinalcordtoolbox.