Closed michal367 closed 1 year ago
AI-Generated Summary: This pull request introduces a new feature to write MetaImage files. The changes include:
DataWriter.hpp
, that defines the writeToMetaImage
function to write image data to a MetaImage file (.mha).writeToMetaImage
function in DataWriter.cpp
.yagit.hpp
to use the new writeToMetaImage
function.DataReader.hpp
to change the parameter name from 'file' to 'filepath'..gitignore
file to ignore MetaImage and raw files.CMakeLists.txt
to include the new DataWriter.cpp
in the project.bar.bat
to run various test executables.testWriter.cpp
, for testing purposes.There are a total of 186 insertions and 13 deletions in this patch.
@michal367 include in the README description how to run the examples, including metaimage
Reviewpad Report
:bangbang: Errors
:warning: Warnings
During build I've got this warning:
[ 57%] Building CXX object CMakeFiles/yagit.dir/src/DataReader.cpp.o
/home/grzanka/workspace/gi-yagit/new/src/DataReader.cpp: In function ‘yagit::ImageData yagit::DataReader::readMetaImage(const std::string&, bool)’:
/home/grzanka/workspace/gi-yagit/new/src/DataReader.cpp:526:18: warning: comparison of integer expressions of different signedness: ‘std::streamsize’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
526 | if(bytesRead != bytes){
| ~~~~~~~~~~^~~~~~~~
💻 Coding Time: 16 days 🛻 Pickup Time: 5 days 👀 Review Time: 1 minute
Reading and writing to MetaImage file (.mha)