Skip to content
Snippets Groups Projects
Unverified Commit 3cfd08b6 authored by YU LIU's avatar YU LIU Committed by GitHub
Browse files

Update PointOp.h

parent 8c4fb552
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ class PointOp : public GenericOperation { ...@@ -101,7 +101,7 @@ class PointOp : public GenericOperation {
double op(double pixel) { return pixel + value; } double op(double pixel) { return pixel + value; }
}; };
struct PixMul : PixOp_t<depth_t> { struct PixMul : PixOp_t<double> {
PixMul(double value_) : PixOp_t<double>(value_) {} PixMul(double value_) : PixOp_t<double>(value_) {}
intmax_t op(depth_t pixel) { return pixel * value + 0.5; } intmax_t op(depth_t pixel) { return pixel * value + 0.5; }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment