MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ tone()

std::shared_ptr< Core::VKImage > MayaFlux::Yantra::VisionExtractor::tone ( const std::shared_ptr< Core::VKImage > &  source,
const Kinesis::Vision::MeasureAppearanceAnalysis &  appearance,
uint32_t  mode,
float  gain,
uint32_t  source_w,
uint32_t  source_h 
)
private

Definition at line 592 of file VisionExtractor.cpp.

597{
598 auto& ctx = image_context();
599 use_shader(ctx, "histogram_equalize.comp.spv", k_wg_image, sizeof(TonePC));
600 ctx.stage_image(source);
601 ctx.set_binding_data(3, std::span<const uint32_t>(appearance.histogram.data(), appearance.histogram.size()));
602 ctx.set_push_constants(TonePC { .mode = mode, .gain = gain, .width = source_w, .height = source_h });
603 return dispatch_image(ctx, source_w, source_h);
604}
uint32_t mode
float gain
TextureExecutionContext & image_context()
The two contexts every method shares, one shader swapped in per call.

References gain, MayaFlux::Kinesis::Vision::MeasureAppearanceAnalysis::histogram, image_context(), and mode.

Referenced by equalize(), and expose().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: