- file->InsertValEntry("1",0x0028,0x0002); // Samples per Pixel
-
- if( !file->IsReadable() )
- {
- std::cout << "Failed\n"
- << " Prepared image isn't readable\n";
- return NULL;
- }
+ file->InsertEntryString("1",0x0028,0x0002,"US"); // Samples per Pixel
+
+ // The so called 'prepared image', built ex nihilo just before,
+ // has NO Pixel Element yet.
+ // therefore, it's NEVER 'file readable' ...
+
+ //if( !file->IsReadable() )
+ // {
+ // std::cout << "Failed\n"
+ // << " Prepared image isn't readable\n";
+ // return NULL;
+ //}