Loading src/tools/imageinfo.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <iostream> #include <i3d/image3d.h> #include <i3d/imgfiles.h> #include <i3d/toolbox.h> using namespace std; using namespace i3d; Loading @@ -39,6 +40,7 @@ template <class VOXEL> void GetImageInfo(Image3d<VOXEL> & image) if (ImageSize > (size_t(1) << 10)) cout << "Image size human: " << (ImageSize >> 10) << " kB\n"; else cout << "Image size human: " << ImageSize << " B\n"; cout << "Current free memory can host " << i3d::GetFreeMemory()/ImageSize << " copies of this image.\n"; } int main(int argc, char *argv[]) Loading Loading
src/tools/imageinfo.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <iostream> #include <i3d/image3d.h> #include <i3d/imgfiles.h> #include <i3d/toolbox.h> using namespace std; using namespace i3d; Loading @@ -39,6 +40,7 @@ template <class VOXEL> void GetImageInfo(Image3d<VOXEL> & image) if (ImageSize > (size_t(1) << 10)) cout << "Image size human: " << (ImageSize >> 10) << " kB\n"; else cout << "Image size human: " << ImageSize << " B\n"; cout << "Current free memory can host " << i3d::GetFreeMemory()/ImageSize << " copies of this image.\n"; } int main(int argc, char *argv[]) Loading