Name | delayed-image JSON |
Version |
0.4.2
JSON |
| download |
home_page | None |
Summary | The delayed_image module |
upload_time | 2024-10-16 23:46:07 |
maintainer | None |
docs_url | None |
author | Jon Crall |
requires_python | >=3.6 |
license | Apache 2 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Delayed Image
=============
|GitlabCIPipeline| |GitlabCICoverage| |Pypi| |PypiDownloads| |ReadTheDocs|
+------------------+-------------------------------------------------------------+
| Read the docs | https://delayed-image.readthedocs.io |
+------------------+-------------------------------------------------------------+
| Gitlab (main) | https://gitlab.kitware.com/computer-vision/delayed_image |
+------------------+-------------------------------------------------------------+
| Github (mirror) | https://github.com/Kitware/delayed_image |
+------------------+-------------------------------------------------------------+
| Pypi | https://pypi.org/project/delayed-image |
+------------------+-------------------------------------------------------------+
The delayed image module lets you describe (a tree of) image operations, but
waits to execute them until the user calls ``finalize``. This allows for a
sequence of operations to be optimized before it is executed, which means
faster execution and fewer quantization artifacts.
The optimization logic can also leverage image formats that contain builtin
tiling or overviews using the GDAL library. Formats that contain tiles allow
delayed image to read only a subset of the image, if only a small part is
cropped to it. Overviews allow delayed image to load pre-downscaled images if
it detects a scaling operation. This is **much** faster than the naive way of
accomplishing these operations, and **much** easier than having to remember to
do everything in the right order yourself.
Note: GDAL is optional, but recommended. Precompiled GDAL wheels are available
on Kitware's `large image wheel repository <https://girder.github.io/large_image_wheels/>`__.
Use ``pip install gdal -f https://girder.github.io/large_image_wheels/``
to install GDAL from this server. Track status of official GDAL wheels `here
<https://github.com/OSGeo/gdal/issues/3060>`__.
History
-------
This module is still in its early days of development and is a port the
following code from kwcoco:
* ChannelSpec
* SensorChannelSpec
* DelayedLoad & other delayed operations
Quick Start
-----------
.. code:: python
# Given a path to some image
import kwimage
fpath = kwimage.grab_test_image_fpath('amazon')
# Demo how to load, scale, and crop a part of an image.
import delayed_image
delayed = delayed_image.DelayedLoad(fpath)
delayed = delayed.prepare()
delayed = delayed.scale(0.1)
delayed = delayed[128:256, 128:256]
import kwplot
kwplot.autompl()
kwplot.imshow(delayed.finalize())
kwimage.imwrite('foo.png', delayed.finalize())
.. image:: https://i.imgur.com/lsWLkPx.png
See `the quickstart jupyter notebook <examples/quickstart.ipynb/>`__ for more details.
Delayed Loading
---------------
Example of delayed loading:
.. code:: python
>>> from delayed_image import DelayedLoad
>>> import kwimage
>>> fpath = kwimage.grab_test_image_fpath(overviews=3)
>>> dimg = DelayedLoad(fpath, channels='r|g|b').prepare()
>>> quantization = {'quant_max': 255, 'nodata': 0}
>>> #
>>> # Make a complex chain of operations
>>> dimg = dimg.dequantize(quantization)
>>> dimg = dimg.warp({'scale': 1.1})
>>> dimg = dimg.warp({'scale': 1.1})
>>> dimg = dimg[0:400, 1:400]
>>> dimg = dimg.warp({'scale': 0.5})
>>> dimg = dimg[0:800, 1:800]
>>> dimg = dimg.warp({'scale': 0.5})
>>> dimg = dimg[0:800, 1:800]
>>> dimg = dimg.warp({'scale': 0.5})
>>> dimg = dimg.warp({'scale': 1.1})
>>> dimg = dimg.warp({'scale': 1.1})
>>> dimg = dimg.warp({'scale': 2.1})
>>> dimg = dimg[0:200, 1:200]
>>> dimg = dimg[1:200, 2:200]
>>> dimg.write_network_text()
╙── Crop dsize=(128,130),space_slice=(slice(1,131,None),slice(2,130,None))
╽
Crop dsize=(130,131),space_slice=(slice(0,131,None),slice(1,131,None))
╽
Warp dsize=(131,131),transform={scale=2.1000}
╽
Warp dsize=(62,62),transform={scale=1.1000}
╽
Warp dsize=(56,56),transform={scale=1.1000}
╽
Warp dsize=(50,50),transform={scale=0.5000}
╽
Crop dsize=(99,100),space_slice=(slice(0,100,None),slice(1,100,None))
╽
Warp dsize=(100,100),transform={scale=0.5000}
╽
Crop dsize=(199,200),space_slice=(slice(0,200,None),slice(1,200,None))
╽
Warp dsize=(200,200),transform={scale=0.5000}
╽
Crop dsize=(399,400),space_slice=(slice(0,400,None),slice(1,400,None))
╽
Warp dsize=(621,621),transform={scale=1.1000}
╽
Warp dsize=(564,564),transform={scale=1.1000}
╽
Dequantize dsize=(512,512),quantization={quant_max=255,nodata=0}
╽
Load channels=r|g|b,dsize=(512,512),num_overviews=3,fname=astro_overviews=3.tif
>>> # Optimize the chain
>>> dopt = dimg.optimize()
>>> dopt.write_network_text()
╙── Warp dsize=(128,130),transform={offset=(-0.6115,-1.0000),scale=1.5373}
╽
Dequantize dsize=(80,83),quantization={quant_max=255,nodata=0}
╽
Crop dsize=(80,83),space_slice=(slice(0,83,None),slice(3,83,None))
╽
Overview dsize=(128,128),overview=2
╽
Load channels=r|g|b,dsize=(512,512),num_overviews=3,fname=astro_overviews=3.tif
#
>>> final0 = dimg.finalize(optimize=False)
>>> final1 = dopt.finalize()
>>> assert final0.shape == final1.shape
>>> # xdoctest: +REQUIRES(--show)
>>> import kwplot
>>> kwplot.autompl()
>>> kwplot.imshow(final0, pnum=(1, 2, 1), fnum=1, title='raw')
>>> kwplot.imshow(final1, pnum=(1, 2, 2), fnum=1, title='optimized')
.. image:: https://i.imgur.com/3SGvxtC.png
Native Resolution Sampling
--------------------------
Consider the case where we have multiple images on disk in different
resolutions, but they correspond to the same scene (e.g. a satellite image may
have RGB bands at 10 meter resolution and an infrared band at 30 meter
resolution), and we want to sample corresponding regions in each image.
Typically a developer may opt to simply rescale everything to the same
resolution, so everything corresponds and then just crop out the region. This
works but it has the negative effect of incurring resampling artifacts.
Delayed image allows for easy and intuitive "native resolution sampling". We
can perform a delayed scale operation to get a "view" of an image as if we
rescaled all component bands to the same resolution, and then perform a delayed
crop. Finalizing this delayed operation is exactly the same as the previously
described case (except that it benefits from delayed image's optimized
operation reordering). However, we can go further. Because we know about the
underlying operation graph we can undo the scale component while keeping the
crop component, which results in loading the corresponding parts of the image
inside the cropped area, but does not do any resampling. The images on disk can
differ in more than just resolution, they could also be offset, skewed or
rotated, and this unwarping procedure will still work.
The following image illustrates an extreme example of this were we simulate a
low resolution red band (R), a medium but rotated resolution green band (G),
and a high but cropped resolution blue (B) band.
.. image:: https://i.imgur.com/fW7Mdo1.png
The raw bands on disk are shown in the top row. The second row demonstrates the
aligned space that we can conceptually think in when performing the crop. The
blue box defined in this row and is projected to all other images using delayed
image. The third row shows the result of the naive resampled alignment and
cropping of the blue box (and also pixel differences between optimized and
non-optimized finalizations). Lastly the fourth row shows the native sampling where
each crop corresponds to the same region, but we have removed all scale factors
(rotation and skew resamplings are still done to align to image corners up to a
scale factor).
For code details see the doctest in `delayed_image/__init__.py __doc__:2 <https://gitlab.kitware.com/computer-vision/delayed_image/-/blob/main/delayed_image/__init__.py#L115>`_
SensorChanSpec
--------------
Includes the SensorChan spec, which makes handling channels from different
sensing sources easier.
The sensor/channel spec isn't necessary to use delayed image, but it helps ---
particularly the channel spec --- to be able to semantically label the channels
when performing delayed load operations.
On a simple level all you need to know to use the basic channel spec is that
channel names are ``|`` delimited. E.g. ``red|green|blue`` refers to a 3
channel image. You can use these names to select subsets of channels. Here is
an example where you load an image, provide it with the semantic labels for
each channel, and then use them to select a single channel.
.. code:: python
import delayed_image
import kwimage
fpath = kwimage.grab_test_image_fpath(overviews=3)
# When you create a delayed image, you can enrich the image with
# information about what channels it contains by specifying the
# channels attribute.
delayed = DelayedLoad(fpath, channels='red|green|blue').prepare()
# You can use this to semantically interact with the channels
delayed_g = delayed.take_channels('green')
assert delayed_g.shape == (512, 512, 1)
# Specifying more than one channel works too
delayed_rb = delayed.take_channels('blue|red')
assert delayed_rb.shape == (512, 512, 2)
Much of the Sensor/Channel spec functionality exists for the benefit of other
projects like `kwcoco <https://gitlab.kitware.com/computer-vision/kwcoco>`_.
Admittedly, this library isn't the perfect home for the full sensor / channel
spec, but this is where it currently lives.
The full sensor channel spec has a formal grammar defined in this package.
.. code::
// SENSOR_CHAN_GRAMMAR
?start: stream
// An identifier can contain spaces
IDEN: ("_"|"*"|LETTER) ("_"|" "|"-"|"*"|LETTER|DIGIT)*
chan_single : IDEN
chan_getitem : IDEN "." INT
chan_getslice_0b : IDEN ":" INT
chan_getslice_ab : (IDEN "." INT ":" INT) | (IDEN ":" INT ":" INT)
// A channel code can just be an ID, or it can have a getitem
// style syntax with a scalar or slice as an argument
chan_code : chan_single | chan_getslice_0b | chan_getslice_ab | chan_getitem
// Fused channels are an ordered sequence of channel codes (without sensors)
fused : chan_code ("|" chan_code)*
// A channel only part can be a fused channel or a sequence
channel_rhs : fused | fused_seq
// Channels can be specified in a sequence but must contain parens
fused_seq : "(" fused ("," fused)* ")"
// Sensors can be specified in a sequence but must contain parens
sensor_seq : "(" IDEN ("," IDEN)* "):"
sensor_lhs : (IDEN ":") | (sensor_seq)
sensor_chan : sensor_lhs channel_rhs?
nosensor_chan : channel_rhs
stream_item : sensor_chan | nosensor_chan
// A stream is an unordered sequence of fused channels, that can
// optionally contain sensor specifications.
stream : stream_item ("," stream_item)*
%import common.DIGIT
%import common.LETTER
%import common.INT
You can think of a channel spec is that splitting the spec by "," gives groups
of channels that should be processed together and "late-fused". Within each
group the "|" operator "early-fuses" the channels.
For instance, say we had a network and we wanted to process 3-channel rgb
images in one stream and 1-channel infrared images in a second stream and then
fuse them together. The channel specification for channels labled as 'red',
'green', 'blue', and 'infrared' would be:
.. code::
infrared,red|green|blue
Sensors can be included with a colon prefix. Parenthesis can be used for
grouping.
.. code::
S2:(infrared,red|green|blue)
.. |Pypi| image:: https://img.shields.io/pypi/v/delayed_image.svg
:target: https://pypi.python.org/pypi/delayed_image
.. |PypiDownloads| image:: https://img.shields.io/pypi/dm/delayed_image.svg
:target: https://pypistats.org/packages/delayed_image
.. |ReadTheDocs| image:: https://readthedocs.org/projects/delayed_image/badge/?version=latest
:target: http://delayed_image.readthedocs.io/en/latest/
.. |GitlabCIPipeline| image:: https://gitlab.kitware.com/computer-vision/delayed_image/badges/main/pipeline.svg
:target: https://gitlab.kitware.com/computer-vision/delayed_image/-/jobs
.. |GitlabCICoverage| image:: https://gitlab.kitware.com/computer-vision/delayed_image/badges/main/coverage.svg
:target: https://gitlab.kitware.com/computer-vision/delayed_image/commits/main
Raw data
{
"_id": null,
"home_page": null,
"name": "delayed-image",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Jon Crall",
"author_email": "jon.crall@kitware.com",
"download_url": "https://files.pythonhosted.org/packages/97/da/68bff2aa86853bbc4c3b5f91d17c38da660ecbf03ed963c7c93f4b95fa17/delayed_image-0.4.2.tar.gz",
"platform": null,
"description": "Delayed Image\n=============\n\n|GitlabCIPipeline| |GitlabCICoverage| |Pypi| |PypiDownloads| |ReadTheDocs|\n\n\n+------------------+-------------------------------------------------------------+\n| Read the docs | https://delayed-image.readthedocs.io |\n+------------------+-------------------------------------------------------------+\n| Gitlab (main) | https://gitlab.kitware.com/computer-vision/delayed_image |\n+------------------+-------------------------------------------------------------+\n| Github (mirror) | https://github.com/Kitware/delayed_image |\n+------------------+-------------------------------------------------------------+\n| Pypi | https://pypi.org/project/delayed-image |\n+------------------+-------------------------------------------------------------+\n\nThe delayed image module lets you describe (a tree of) image operations, but\nwaits to execute them until the user calls ``finalize``. This allows for a\nsequence of operations to be optimized before it is executed, which means\nfaster execution and fewer quantization artifacts.\n\nThe optimization logic can also leverage image formats that contain builtin\ntiling or overviews using the GDAL library. Formats that contain tiles allow\ndelayed image to read only a subset of the image, if only a small part is\ncropped to it. Overviews allow delayed image to load pre-downscaled images if\nit detects a scaling operation. This is **much** faster than the naive way of\naccomplishing these operations, and **much** easier than having to remember to\ndo everything in the right order yourself.\n\nNote: GDAL is optional, but recommended. Precompiled GDAL wheels are available\non Kitware's `large image wheel repository <https://girder.github.io/large_image_wheels/>`__.\nUse ``pip install gdal -f https://girder.github.io/large_image_wheels/``\nto install GDAL from this server. Track status of official GDAL wheels `here\n<https://github.com/OSGeo/gdal/issues/3060>`__.\n\n\nHistory\n-------\n\nThis module is still in its early days of development and is a port the\nfollowing code from kwcoco:\n\n* ChannelSpec\n* SensorChannelSpec\n* DelayedLoad & other delayed operations\n\n\nQuick Start\n-----------\n\n.. code:: python\n\n # Given a path to some image\n import kwimage\n fpath = kwimage.grab_test_image_fpath('amazon')\n\n # Demo how to load, scale, and crop a part of an image.\n import delayed_image\n delayed = delayed_image.DelayedLoad(fpath)\n delayed = delayed.prepare()\n delayed = delayed.scale(0.1)\n delayed = delayed[128:256, 128:256]\n\n import kwplot\n kwplot.autompl()\n kwplot.imshow(delayed.finalize())\n kwimage.imwrite('foo.png', delayed.finalize())\n\n.. image:: https://i.imgur.com/lsWLkPx.png\n\nSee `the quickstart jupyter notebook <examples/quickstart.ipynb/>`__ for more details.\n\nDelayed Loading\n---------------\n\nExample of delayed loading:\n\n.. code:: python\n\n >>> from delayed_image import DelayedLoad\n >>> import kwimage\n >>> fpath = kwimage.grab_test_image_fpath(overviews=3)\n >>> dimg = DelayedLoad(fpath, channels='r|g|b').prepare()\n >>> quantization = {'quant_max': 255, 'nodata': 0}\n >>> #\n >>> # Make a complex chain of operations\n >>> dimg = dimg.dequantize(quantization)\n >>> dimg = dimg.warp({'scale': 1.1})\n >>> dimg = dimg.warp({'scale': 1.1})\n >>> dimg = dimg[0:400, 1:400]\n >>> dimg = dimg.warp({'scale': 0.5})\n >>> dimg = dimg[0:800, 1:800]\n >>> dimg = dimg.warp({'scale': 0.5})\n >>> dimg = dimg[0:800, 1:800]\n >>> dimg = dimg.warp({'scale': 0.5})\n >>> dimg = dimg.warp({'scale': 1.1})\n >>> dimg = dimg.warp({'scale': 1.1})\n >>> dimg = dimg.warp({'scale': 2.1})\n >>> dimg = dimg[0:200, 1:200]\n >>> dimg = dimg[1:200, 2:200]\n >>> dimg.write_network_text()\n \u2559\u2500\u2500 Crop dsize=(128,130),space_slice=(slice(1,131,None),slice(2,130,None))\n \u257d\n Crop dsize=(130,131),space_slice=(slice(0,131,None),slice(1,131,None))\n \u257d\n Warp dsize=(131,131),transform={scale=2.1000}\n \u257d\n Warp dsize=(62,62),transform={scale=1.1000}\n \u257d\n Warp dsize=(56,56),transform={scale=1.1000}\n \u257d\n Warp dsize=(50,50),transform={scale=0.5000}\n \u257d\n Crop dsize=(99,100),space_slice=(slice(0,100,None),slice(1,100,None))\n \u257d\n Warp dsize=(100,100),transform={scale=0.5000}\n \u257d\n Crop dsize=(199,200),space_slice=(slice(0,200,None),slice(1,200,None))\n \u257d\n Warp dsize=(200,200),transform={scale=0.5000}\n \u257d\n Crop dsize=(399,400),space_slice=(slice(0,400,None),slice(1,400,None))\n \u257d\n Warp dsize=(621,621),transform={scale=1.1000}\n \u257d\n Warp dsize=(564,564),transform={scale=1.1000}\n \u257d\n Dequantize dsize=(512,512),quantization={quant_max=255,nodata=0}\n \u257d\n Load channels=r|g|b,dsize=(512,512),num_overviews=3,fname=astro_overviews=3.tif\n\n >>> # Optimize the chain\n >>> dopt = dimg.optimize()\n >>> dopt.write_network_text()\n \u2559\u2500\u2500 Warp dsize=(128,130),transform={offset=(-0.6115,-1.0000),scale=1.5373}\n \u257d\n Dequantize dsize=(80,83),quantization={quant_max=255,nodata=0}\n \u257d\n Crop dsize=(80,83),space_slice=(slice(0,83,None),slice(3,83,None))\n \u257d\n Overview dsize=(128,128),overview=2\n \u257d\n Load channels=r|g|b,dsize=(512,512),num_overviews=3,fname=astro_overviews=3.tif\n\n #\n >>> final0 = dimg.finalize(optimize=False)\n >>> final1 = dopt.finalize()\n >>> assert final0.shape == final1.shape\n >>> # xdoctest: +REQUIRES(--show)\n >>> import kwplot\n >>> kwplot.autompl()\n >>> kwplot.imshow(final0, pnum=(1, 2, 1), fnum=1, title='raw')\n >>> kwplot.imshow(final1, pnum=(1, 2, 2), fnum=1, title='optimized')\n\n\n.. image:: https://i.imgur.com/3SGvxtC.png\n\n\nNative Resolution Sampling\n--------------------------\n\nConsider the case where we have multiple images on disk in different\nresolutions, but they correspond to the same scene (e.g. a satellite image may\nhave RGB bands at 10 meter resolution and an infrared band at 30 meter\nresolution), and we want to sample corresponding regions in each image.\nTypically a developer may opt to simply rescale everything to the same\nresolution, so everything corresponds and then just crop out the region. This\nworks but it has the negative effect of incurring resampling artifacts.\n\nDelayed image allows for easy and intuitive \"native resolution sampling\". We\ncan perform a delayed scale operation to get a \"view\" of an image as if we\nrescaled all component bands to the same resolution, and then perform a delayed\ncrop. Finalizing this delayed operation is exactly the same as the previously\ndescribed case (except that it benefits from delayed image's optimized\noperation reordering). However, we can go further. Because we know about the\nunderlying operation graph we can undo the scale component while keeping the\ncrop component, which results in loading the corresponding parts of the image\ninside the cropped area, but does not do any resampling. The images on disk can\ndiffer in more than just resolution, they could also be offset, skewed or\nrotated, and this unwarping procedure will still work.\n\nThe following image illustrates an extreme example of this were we simulate a\nlow resolution red band (R), a medium but rotated resolution green band (G),\nand a high but cropped resolution blue (B) band.\n\n.. image:: https://i.imgur.com/fW7Mdo1.png\n\n\nThe raw bands on disk are shown in the top row. The second row demonstrates the\naligned space that we can conceptually think in when performing the crop. The\nblue box defined in this row and is projected to all other images using delayed\nimage. The third row shows the result of the naive resampled alignment and\ncropping of the blue box (and also pixel differences between optimized and\nnon-optimized finalizations). Lastly the fourth row shows the native sampling where\neach crop corresponds to the same region, but we have removed all scale factors\n(rotation and skew resamplings are still done to align to image corners up to a\nscale factor).\n\nFor code details see the doctest in `delayed_image/__init__.py __doc__:2 <https://gitlab.kitware.com/computer-vision/delayed_image/-/blob/main/delayed_image/__init__.py#L115>`_\n\n\nSensorChanSpec\n--------------\n\nIncludes the SensorChan spec, which makes handling channels from different\nsensing sources easier.\n\nThe sensor/channel spec isn't necessary to use delayed image, but it helps ---\nparticularly the channel spec --- to be able to semantically label the channels\nwhen performing delayed load operations.\n\nOn a simple level all you need to know to use the basic channel spec is that\nchannel names are ``|`` delimited. E.g. ``red|green|blue`` refers to a 3\nchannel image. You can use these names to select subsets of channels. Here is\nan example where you load an image, provide it with the semantic labels for\neach channel, and then use them to select a single channel.\n\n.. code:: python\n\n import delayed_image\n import kwimage\n fpath = kwimage.grab_test_image_fpath(overviews=3)\n\n # When you create a delayed image, you can enrich the image with\n # information about what channels it contains by specifying the\n # channels attribute.\n delayed = DelayedLoad(fpath, channels='red|green|blue').prepare()\n\n # You can use this to semantically interact with the channels\n delayed_g = delayed.take_channels('green')\n assert delayed_g.shape == (512, 512, 1)\n\n # Specifying more than one channel works too\n delayed_rb = delayed.take_channels('blue|red')\n assert delayed_rb.shape == (512, 512, 2)\n\n\nMuch of the Sensor/Channel spec functionality exists for the benefit of other\nprojects like `kwcoco <https://gitlab.kitware.com/computer-vision/kwcoco>`_.\nAdmittedly, this library isn't the perfect home for the full sensor / channel\nspec, but this is where it currently lives.\n\nThe full sensor channel spec has a formal grammar defined in this package.\n\n .. code::\n\n // SENSOR_CHAN_GRAMMAR\n ?start: stream\n\n // An identifier can contain spaces\n IDEN: (\"_\"|\"*\"|LETTER) (\"_\"|\" \"|\"-\"|\"*\"|LETTER|DIGIT)*\n\n chan_single : IDEN\n chan_getitem : IDEN \".\" INT\n chan_getslice_0b : IDEN \":\" INT\n chan_getslice_ab : (IDEN \".\" INT \":\" INT) | (IDEN \":\" INT \":\" INT)\n\n // A channel code can just be an ID, or it can have a getitem\n // style syntax with a scalar or slice as an argument\n chan_code : chan_single | chan_getslice_0b | chan_getslice_ab | chan_getitem\n\n // Fused channels are an ordered sequence of channel codes (without sensors)\n fused : chan_code (\"|\" chan_code)*\n\n // A channel only part can be a fused channel or a sequence\n channel_rhs : fused | fused_seq\n\n // Channels can be specified in a sequence but must contain parens\n fused_seq : \"(\" fused (\",\" fused)* \")\"\n\n // Sensors can be specified in a sequence but must contain parens\n sensor_seq : \"(\" IDEN (\",\" IDEN)* \"):\"\n\n sensor_lhs : (IDEN \":\") | (sensor_seq)\n\n sensor_chan : sensor_lhs channel_rhs?\n\n nosensor_chan : channel_rhs\n\n stream_item : sensor_chan | nosensor_chan\n\n // A stream is an unordered sequence of fused channels, that can\n // optionally contain sensor specifications.\n\n stream : stream_item (\",\" stream_item)*\n\n %import common.DIGIT\n %import common.LETTER\n %import common.INT\n\n\nYou can think of a channel spec is that splitting the spec by \",\" gives groups\nof channels that should be processed together and \"late-fused\". Within each\ngroup the \"|\" operator \"early-fuses\" the channels.\n\nFor instance, say we had a network and we wanted to process 3-channel rgb\nimages in one stream and 1-channel infrared images in a second stream and then\nfuse them together. The channel specification for channels labled as 'red',\n'green', 'blue', and 'infrared' would be:\n\n.. code::\n\n infrared,red|green|blue\n\n\nSensors can be included with a colon prefix. Parenthesis can be used for\ngrouping.\n\n.. code::\n\n\n S2:(infrared,red|green|blue)\n\n\n.. |Pypi| image:: https://img.shields.io/pypi/v/delayed_image.svg\n :target: https://pypi.python.org/pypi/delayed_image\n\n.. |PypiDownloads| image:: https://img.shields.io/pypi/dm/delayed_image.svg\n :target: https://pypistats.org/packages/delayed_image\n\n.. |ReadTheDocs| image:: https://readthedocs.org/projects/delayed_image/badge/?version=latest\n :target: http://delayed_image.readthedocs.io/en/latest/\n\n.. |GitlabCIPipeline| image:: https://gitlab.kitware.com/computer-vision/delayed_image/badges/main/pipeline.svg\n :target: https://gitlab.kitware.com/computer-vision/delayed_image/-/jobs\n\n.. |GitlabCICoverage| image:: https://gitlab.kitware.com/computer-vision/delayed_image/badges/main/coverage.svg\n :target: https://gitlab.kitware.com/computer-vision/delayed_image/commits/main\n",
"bugtrack_url": null,
"license": "Apache 2",
"summary": "The delayed_image module",
"version": "0.4.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bdc6bc638796983ee2ecf1b30e7e09256042a653abc34046e68703d49a57aba8",
"md5": "39d229345c6dcd606308d280412cde61",
"sha256": "3f5c45e3cb12722610f31c213824a7c55c3d84e6ed36d2f76946dac525422724"
},
"downloads": -1,
"filename": "delayed_image-0.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "39d229345c6dcd606308d280412cde61",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 94176,
"upload_time": "2024-10-16T23:46:04",
"upload_time_iso_8601": "2024-10-16T23:46:04.420624Z",
"url": "https://files.pythonhosted.org/packages/bd/c6/bc638796983ee2ecf1b30e7e09256042a653abc34046e68703d49a57aba8/delayed_image-0.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "97da68bff2aa86853bbc4c3b5f91d17c38da660ecbf03ed963c7c93f4b95fa17",
"md5": "378b348df95e9377a41c2cbb4fcb255a",
"sha256": "369a76b82161f60545734b048231672148b38307f0a9abc9734da8a2725be447"
},
"downloads": -1,
"filename": "delayed_image-0.4.2.tar.gz",
"has_sig": false,
"md5_digest": "378b348df95e9377a41c2cbb4fcb255a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 106820,
"upload_time": "2024-10-16T23:46:07",
"upload_time_iso_8601": "2024-10-16T23:46:07.743004Z",
"url": "https://files.pythonhosted.org/packages/97/da/68bff2aa86853bbc4c3b5f91d17c38da660ecbf03ed963c7c93f4b95fa17/delayed_image-0.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-16 23:46:07",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "delayed-image"
}