IMServer:Uploader

From KitwarePublic
Revision as of 23:20, 18 January 2011 by Dhanannjay.deo (talk | contribs) (Created page with "== Image Dicer == Large images are split into multir-esolution representation == Upload to MongoDB == A simple mongo interface is created <source lang="c++"> #include <io...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Image Dicer

Large images are split into multir-esolution representation


Upload to MongoDB

A simple mongo interface is created

<source 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>