-
Notifications
You must be signed in to change notification settings - Fork 11
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
Line in binary data file can wrongly interpreted as header #17
Comments
Would the idea be that if a Perhaps we should consider a |
In the current implementation a header section is only allowed in front of the binary section. Each header line have to start with a
Here, I can check the whole line instead of the first character and it is impossible that the binary section will match this string. A starting line is not necessary. |
I think we agree. The header is only valid if there is a If an integer value is incorrectly interpreted as a |
I think this issue may need to be reopened. I am now getting errors when training the SOM with an initializing with a file.
The check of the numberOfChannels is the first after attempting to bypass the header. I'm not seeing exactly how the error is being introduced, but it may be an off by one? |
I think I figured this out. The I've found putting a |
The first character of the data section in a binary file can be a '#'-character, which is interpreted as a header comment line, introduced at #1.
PINK/src/ImageProcessingLib/ImageIterator.h
Line 44 in 8738ffc
To fix this, I would suggest to end the header section with the line:
# END OF HEADER
It will be still backward compatible, as the line is not needed if no header is used.
The text was updated successfully, but these errors were encountered: