IMServer:Uploader: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
Line 5: Line 5:
The files are padded to cover next power of two, and then  
The files are padded to cover next power of two, and then  


[[Image:multires_naming_convention.svg|thumb|alt=Naming of images for multiresolution representation|Naming of images for multiresolution representation]]
[[Image:multires_naming_convention.png|alt=Naming of images for multiresolution representation|Naming of images for multiresolution representation]]


== Upload to MongoDB ==  
== Upload to MongoDB ==  

Revision as of 17:30, 19 January 2011

Image Dicer

Large images are split into multir-esolution representation

The files are padded to cover next power of two, and then

Naming of images for multiresolution representation

Upload to MongoDB

A simple mongo interface is created

<source enclose=pre lang="c">

  1. include <iostream>
  2. include <client/dbclient.h>

using namespace std;

class vtkMongoInterface {

   mongo::DBClientConnection conn;

public:

   // Constructor
   vtkMongoInterface()  {}
   // Operations possible
   int connect(const char *server = "127.0.0.1", int port = 27017);
   int insert(const char * name , int num );
   int insert(const char * path, mongo::BSONObj  obj);
   int query();

};

</source>