naps.cores.video.wavelet package

Submodules

naps.cores.video.wavelet.dng module

naps.cores.video.wavelet.dng.read_dng(filename)
naps.cores.video.wavelet.dng.write_dng(filename, red, green1, green2, blue, bit_depth, order=('G1', 'R', 'B', 'G2'))

naps.cores.video.wavelet.py_compressor module

class naps.cores.video.wavelet.py_compressor.NumericRange(min, max)

Bases: object

naps.cores.video.wavelet.py_compressor.compress(image, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.compute_symbol_frequencies(region_codes, compressed_chunks, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.empty_symbol_frequencies_dict(levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.fill_reference_frame(h, w, levels=3)
naps.cores.video.wavelet.py_compressor.gen_rle_dict(region_code, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.generate_huffman_tables(symbol_frequencies, levels, input_range, quantization, max_table_size=1024)
naps.cores.video.wavelet.py_compressor.get_huffman_size(huffman_tables, region_codes, rle_chunks, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.huffman_encode(huffman_tables, region_codes, rle_chunks)
naps.cores.video.wavelet.py_compressor.merge_symbol_frequencies(symbol_frequencies_list)
naps.cores.video.wavelet.py_compressor.n_combine(input_array, n, first_symbol)
naps.cores.video.wavelet.py_compressor.numeric_range_from_region_code(region_code, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.numeric_range_from_region_code_with_rle(region_code, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.possible_region_codes(levels=3)
naps.cores.video.wavelet.py_compressor.rle_compress_chunks(chunks, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.rle_region(data, region_code, levels, input_range, quantization)
naps.cores.video.wavelet.py_compressor.rle_region_decode(data, region_code, levels, length, input_range, quantization)
naps.cores.video.wavelet.py_compressor.to_chunks(image, levels)
naps.cores.video.wavelet.py_compressor.uncompress(original_shape, compressed, levels, bit_depth, quantization)
naps.cores.video.wavelet.py_compressor.zero_rle(array, codebook)
naps.cores.video.wavelet.py_compressor.zero_rle_decode(array, codebook, length)
naps.cores.video.wavelet.py_compressor.zero_rle_decode_inner(input_array, output_array, codebook, codebook_start)
naps.cores.video.wavelet.py_compressor.zero_rle_inner(input_array, keys, values)

naps.cores.video.wavelet.py_wavelet module

naps.cores.video.wavelet.py_wavelet.compute_psnr(a, b, bit_depth=8)
naps.cores.video.wavelet.py_wavelet.dequantize(image, values, level)
naps.cores.video.wavelet.py_wavelet.inverse_multi_stage_wavelet2d(image, stages, return_all_stages=False, quantization=None)
naps.cores.video.wavelet.py_wavelet.inverse_wavelet_1d(image, pad_width=0, direction_x=False)
naps.cores.video.wavelet.py_wavelet.inverse_wavelet_2d(image, pad_width=0)
naps.cores.video.wavelet.py_wavelet.multi_stage_wavelet2d(image, stages, return_all_stages=False, quantization=None)
naps.cores.video.wavelet.py_wavelet.quantize(image, values, level)
naps.cores.video.wavelet.py_wavelet.wavelet1d(image, direction_x=False)
naps.cores.video.wavelet.py_wavelet.wavelet2d(image)

naps.cores.video.wavelet.py_wavelet_benchmark module

naps.cores.video.wavelet.py_wavelet_benchmark.load_image(path)
naps.cores.video.wavelet.py_wavelet_benchmark.pmap(fn, *iterables, capture=(), threads=None)
naps.cores.video.wavelet.py_wavelet_benchmark.wrapper(args)

naps.cores.video.wavelet.py_wavelet_repack module

naps.cores.video.wavelet.py_wavelet_repack.full_width(w, stages)
naps.cores.video.wavelet.py_wavelet_repack.interleave(*args)
naps.cores.video.wavelet.py_wavelet_repack.pack(image, levels)
naps.cores.video.wavelet.py_wavelet_repack.real_width(encoded_width, stages)
naps.cores.video.wavelet.py_wavelet_repack.unpack(image, levels)
naps.cores.video.wavelet.py_wavelet_repack.width_factor(stages, factor=1.0)

naps.cores.video.wavelet.vifp module

Portions Copyright (c) 2014 CiiNOW Inc. Written by Alex Izvorski <aizvorski@gmail.com>, <alex@ciinow.com> 2014-03-03 Ported from matlab to python/numpy/scipy 2014-03-04 Added utility functions to read/compare images and video

naps.cores.video.wavelet.vifp.vifp_mscale(ref, dist)

naps.cores.video.wavelet.wavelet module

class naps.cores.video.wavelet.wavelet.MultiStageWavelet2D(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

Does a multi level wavelet transform while producing a wide image that has the lf part on the left and the hf parts on the right

elaborate(platform)
class naps.cores.video.wavelet.wavelet.Wavelet1D(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform)
class naps.cores.video.wavelet.wavelet.Wavelet2D(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform)

naps.cores.video.wavelet.wavelet_compressor module

class naps.cores.video.wavelet.wavelet_compressor.WaveletCompressor(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

compresses an image stream using a wavelet compression algorithm

elaborate(platform)

naps.cores.video.wavelet.wavelet_test module

class naps.cores.video.wavelet.wavelet_test.WaveletTest(methodName='runTest')

Bases: unittest.case.TestCase

check_multistage(n)
test_multistage_1()
test_multistage_2()
test_multistage_3()
test_stream_splitter()
test_wavelet_2d()

Module contents