cutcutcodec.core.generation.video.noise.GeneratorVideoNoise

class cutcutcodec.core.generation.video.noise.GeneratorVideoNoise(seed: Real | None = None)[source]

Generate a pure noise video signal.

Examples

>>> from cutcutcodec.core.generation.video.noise import GeneratorVideoNoise
>>> stream = GeneratorVideoNoise(0).out_streams[0]
>>> stream.snapshot(0, (13, 9))[..., 0]
tensor([[127,  38, 184, 235, 108, 176, 146, 203,  68],
        [217, 228,  36,  60, 186,  75, 202, 203, 185],
        [228, 143,  82, 179, 157, 172, 151, 115, 208],
        [221, 219, 169, 189, 199, 214, 134,  31,  23],
        [177, 214,  12,  12,  86, 199,  62, 111, 143],
        [168,  24, 114, 190, 101,  49,  46,  13,  11],
        [217, 230, 254,  40, 216, 192, 196,  67, 127],
        [157, 214,  66,  65,  72, 153,  65, 129, 147],
        [ 24,  92, 187, 202, 171, 182,  40,  63, 240],
        [245, 219, 159, 178,  73,  59, 230, 141, 139],
        [197, 101, 129, 185,  46,  35,  80,   4, 156],
        [156, 145,  73,  60, 130, 234,  92, 195,  18],
        [ 25,  21, 156, 202, 142, 104, 225,  45,  57]], dtype=torch.uint8)
>>>

Initialise and create the class.

Parameters

seednumbers.Real, optional

Transmitted to cutcutcodec.core.interfaces.seedable.Seedable.

classmethod default()[source]

Provide a minimalist example of an instance of this node.