Luminance Annotator

Hi everyone,

I’m working on capturing the luminance of frames for some processing tasks. I see that Replicator (v1.11.35) includes several path tracing AOVs via the default annotators, but unfortunately, luminance doesn’t seem to be one of the available channels.

Does anyone know where the path tracing AOV annotators are implemented in the codebase? I was hoping to use an existing one as a reference, but so far I’ve only been able to find the node annotators.

Any tips or leads on either accessing luminance directly or implementing a custom annotator to capture it would be greatly appreciated!

Thanks!

Seems like additional path tracing annotators can be added as easily as the ones in the default_annotators.py file.

For luminance:

rep.AnnotatorRegistry.register_annotator_from_aov(
    aov="PtLuminance",
    output_data_type=np.float32,
    output_channels=4
)

luminance_annotator = rep.AnnotatorRegistry.get_annotator("PtLuminance")

Cheers!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.