-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
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
Use itk::ReadImage and itk::WriteImage #226
Comments
Hi @thewtex, For instance, If I check how many example files uses itkImageFileReader there are 212, while itkImageFileWriter 210. It may be convenient to commit per module (Core, Numerics, ...) For now, I will make a single commit with the example at src/Core/Transform/ScaleAnImage/Code.cxx |
This sounds good. Or change all in one commit. There would be too many commits with one commit per example. #302 is just what we are looking for. This should be done for great majority of the examples. If reader or writer are being used to demonstrate streaming or in some other unusual way, they should be left alone. |
Ok. New commit #303 with changes of examples at src/Core. Unchaged Changed Missing compiled binary (not added in cmake) and without test files Not working as intended, all test passed but the output is a black image Unused header Import file writer but unused: Import file reader but unused: Question, although importing the itkImageFileReader.h or itkImageFileWriter.h in those files do not create conflicts should I delete them? |
If the includes are unused, they should be deleted. I guess this was created by starting a new example by copying an old one, which had some unnecessary includes. |
I think it is desirable to update the non-working examples along with the working ones. Unless reading or writing are the problematic part of the example. |
Perhaps the broken/unindexed examples should be updated in a separate commit? |
I am currently doing this. |
Agree, I am just reporting those for now. |
Got it, I will include them in #303 |
@josetascon thank you for your contributions! 🙏 |
I am happy to help :) |
New commit #305. Unchaged: Missing compiled binary (cmake) and without test files: |
New commit #306. Missing compiled binary (cmake) and without test files: |
Final commit #307. The notes: Missing compiled binary (cmake) and without test files: |
Use the new functions,
itk::ReadImage
anditk::WriteImage
, available in ITK 5.2 for simplicity overitk::ImageFileReader
anditk::ImageFileWriter
throughout the examples. See #225for an illustration of the changes required.
The text was updated successfully, but these errors were encountered: