mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
filename is redundant
This commit is contained in:
parent
75800aeb26
commit
361194e4d8
@ -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);
|
||||
};
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
class Image: public node::ObjectWrap {
|
||||
public:
|
||||
std::string filename;
|
||||
cv::Mat mat;
|
||||
|
||||
static Persistent<FunctionTemplate> constructor;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user