From 157d5cf3af1bc4e6d4391d51bb4aa3699022ee6b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 10 Sep 2013 13:16:59 +0100 Subject: remove cvimage pointer use in nodes: temporary fix --- rotord/src/rotor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index fbefa66..d59197a 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -605,11 +605,17 @@ namespace Rotor { image=image.add_wrap(*in2); break; case BLEND_blend: //has to be last because of initialser of *in? go figure - //problem here with leak + image*=(1.0f-parameters["amount"]->value); + /* //problem here with leak + //opencv handles not being released Image *in=(*in2)*parameters["amount"]->value; image+=(*in); delete in; + */ + Image in=(*in2); + in*=parameters["amount"]->value; + image+=in; break; } return ℑ -- cgit v1.2.3