Tasks#
What a basis is used for, one module per task. A task transforms through forward_transform and inverse_transform, never through the circuit, so it runs on every basis. Compression keeps the largest coefficients of an image and rebuilds it from them (upstream’s compression.jl, with its JSON form). Completion fills in an image from the pixels that were observed, by iterative hard thresholding in the basis; completion_loss() is the objective for training a basis through that solver. Both take a colour image as a stack of channel planes, with one budget over the planes; pdft.color makes the stack.
What a basis is used for: one module per task.
A task takes a basis and data and transforms through forward_transform
and inverse_transform, never through the circuit, so it runs on every
basis in the package.
tasks.compression— keep the largest coefficients of an image and rebuild it from them. Mirror of upstreamsrc/compression.jl.tasks.completion— fill in an image from the pixels that were observed, and the objective for training a basis to do so. Not in upstream.
Contents
Compress |
|
Compress keeping exactly |
|
Reconstruct real-valued image from a compressed representation. |
|
Sparse frequency-domain representation of an image. |
|
Summary of compression ratio + kept coefficients. |
|
Write a |
|
Read a |
|
Convert to the JSON-ready dict form. |
|
Inverse of |
|
Reconstruct a real image from its pixels under |
|
|