Quadtree
-
Hallo,
ich habe ein bild als tiefwerte ,und will quadtree für dieses bild aufbauen
und dann verschlüsseln dieses quadtree mit arithmetic conding.
um Hilfe bitten
-
Probiers mal so:
#include <boost/troll.hpp> //... boost::troll::detector detector(Thread_Opener); if(detector.is_troll()) { boost::troll::monster_slayer slayer; slayer.kill(Thread_Opener); } else { std::cout << "The detector is broken\n"; }
-
Tachyon schrieb:
Probiers mal so:
#include <boost/troll.hpp> //... boost::troll::detector detector(Thread_Opener); if(detector.is_troll()) { boost::troll::monster_slayer slayer; slayer.kill(Thread_Opener); } else { std::cout << "The detector is broken\n"; }vielen dank für die antwort
ich habe schon selbst versucht einen einfach code zu schreiben ://Node class #include<vector> struct Point // the location of the pixel with the its value { int x; int y; int value; }; class Node // a node in the tree which contains many of pixels ,that //the difference among its value less than specified value(threshold) { public: Node(int x, int y, int w, int h); int posX; int posY; int width; int height; bool leaf; Node* child[4]; std::vector<Point> pointArray; }; // CONSTRUCTOR Node::Node(int x, int y, int w, int h) { posX = x; posY = y; width = w; height = h; leaf=false; }und nun möchte encoding diesen quadtree
-
Aber schau dir doch Tachyons Code nochmals genauer an, dein Problem wird dort recht gut gelöst.
-
ihr seid ja so gemein
