#include "Halide.h"
#include "halide_image_io.h"
using namespace Halide::Tools;
int main(int argc, char **argv) {
value = value * 1.5f;
brighter(x, y, c) = value;
brighter.
realize({input.width(), input.height(), input.channels()});
save_image(output, "brighter.png");
printf("Success!\n");
return 0;
}
A Halide::Buffer is a named shared reference to a Halide::Runtime::Buffer.
Realization realize(std::vector< int32_t > sizes={}, const Target &target=Target())
Evaluate this function over some rectangular domain and return the resulting buffer or buffers.
A Halide variable, to be used when defining functions.
Expr min(const FuncRef &a, const FuncRef &b)
Explicit overloads of min and max for FuncRef.
Internal::ConstantInterval cast(Type t, const Internal::ConstantInterval &a)
Cast operators for ConstantIntervals.
A fragment of Halide syntax.