diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-05-22 10:14:01 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-05-22 10:14:01 +0100 |
| commit | 8f1667713a961de1f20688470ab84db097151692 (patch) | |
| tree | 43f3b068dac7b30df538344ef16d7c6003036203 /rotord/src/nodes_channels.h | |
| parent | bb6498e5ff6a8a8af8c06300dac051659a37e89b (diff) | |
colour palette as string inlet
Diffstat (limited to 'rotord/src/nodes_channels.h')
| -rw-r--r-- | rotord/src/nodes_channels.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rotord/src/nodes_channels.h b/rotord/src/nodes_channels.h index 3b3fa70..7e5b507 100644 --- a/rotord/src/nodes_channels.h +++ b/rotord/src/nodes_channels.h @@ -373,6 +373,7 @@ namespace Rotor { apply_LUT(in,image); } void apply_LUT(const Image& in,Image &out){ //facility to apply to other images for inherited classes + if (in.w==0) cerr<<type<<" node "<<ID<<" requesting 0 size LUT "<<endl; out.setup(in.w,in.h); for (int i=0;i<out.w*out.h*3;i++){ out.RGBdata[i]=LUT[in.RGBdata[i]]; |
