filename is redundant

This commit is contained in:
Peter Braden 2012-01-20 09:09:27 -08:00
parent 75800aeb26
commit 361194e4d8
2 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ Image::Image(uint8_t* buf, unsigned len): ObjectWrap() {
Image::Image(v8::Value* fileName): ObjectWrap() {
filename = std::string(*v8::String::AsciiValue(fileName->ToString()));
std::string filename = std::string(*v8::String::AsciiValue(fileName->ToString()));
mat = cv::imread(filename, -1);
};

View File

@ -2,7 +2,6 @@
class Image: public node::ObjectWrap {
public:
std::string filename;
cv::Mat mat;
static Persistent<FunctionTemplate> constructor;