ljpeg


Nameljpeg JSON
Version 3.7.1 PyPI version JSON
download
home_pagehttps://github.com/sanchezcarlosjr/ljpeg
SummaryRead and transform LJPEG images
upload_time2023-04-19 19:23:55
maintainer
docs_urlNone
authorsanchezcarlosjr
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. image:: https://readthedocs.org/projects/pyscaffold-demo/badge/?version=latest
    :alt: ReadTheDocs
    :target: https://pyscaffold-demo.readthedocs.io/

.. These are examples of badges you might want to add to your README:
   please update the URLs accordingly

    .. image:: https://api.cirrus-ci.com/github/<USER>/demo-project.svg?branch=main
        :alt: Built Status
        :target: https://cirrus-ci.com/github/<USER>/demo-project
    .. image:: https://readthedocs.org/projects/demo-project/badge/?version=latest
        :alt: ReadTheDocs
        :target: https://demo-project.readthedocs.io/en/stable/
    .. image:: https://img.shields.io/coveralls/github/<USER>/demo-project/main.svg
        :alt: Coveralls
        :target: https://coveralls.io/r/<USER>/demo-project
    .. image:: https://img.shields.io/pypi/v/demo-project.svg
        :alt: PyPI-Server
        :target: https://pypi.org/project/demo-project/
    .. image:: https://img.shields.io/conda/vn/conda-forge/demo-project.svg
        :alt: Conda-Forge
        :target: https://anaconda.org/conda-forge/demo-project
    .. image:: https://pepy.tech/badge/demo-project/month
        :alt: Monthly Downloads
        :target: https://pepy.tech/project/demo-project
    .. image:: https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter
        :alt: Twitter
        :target: https://twitter.com/demo-project

.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
    :alt: Project generated with PyScaffold
    :target: https://pyscaffold.org/

|

============
ljpeg
============
     Read and transform LJPEG images into modern formats.

Installation
============
Warning: You must have installed the flex parser on your operating system::

    pip install ljpeg

By default, we offer you a binary called jpeg_static. However, you can produce your jpeg binary::

    cd jpegdir && make

Getting started
=================
Download a set of mammograms with::

     wget -r -q ftp://figment.csee.usf.edu:21/pub/DDSM/cases/normals/normal_08/case4606/

Transform a lot of mammograms parallely::

     find . -type f -name '*.LJPEG' | parallel -j+0 "ljpeg {} $(pwd)/{/.}.tiff --verify"

Convert to TIFF (requires the .ics file in the same directory as LJPEG)::

     ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.tiff


Convert to TIFF and verify that no information has been lost::

      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.tiff --verify

Convert to jpeg for visualization with down-sizing scale=0.3 (16-bit TIFF is not good for direct visualization)::

      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.jpg --visual --scale 0.3

Convert to TIFF and map gray levels to optical density level::

      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.jpg --od-correct

Note that output file can be any format that's supported by OpenCV (which includes all common types). Most file formats only support 8-bit images, so directly saving into such file formats will cause problems. Add "--visual" to normalize color into 8-bit before saving to such file formats.

The Stanford ljpeg code is in public domain and is therefore OK to be included here. I did minor modification to make the code compile under modern Linux.


Making Changes & Contributing
=============================

This project uses `pre-commit`_, please make sure to install it before making any
changes::

    pip install pre-commit
    cd demo-project
    pre-commit install

It is a good idea to update the hooks to the latest version::

    pre-commit autoupdate

Don't forget to tell your contributors to also install and use pre-commit.

.. _pre-commit: https://pre-commit.com/

Note
====

This project has been set up using PyScaffold 4.2.2.post1.dev3+g01e6e81. For details and usage
information on PyScaffold see https://pyscaffold.org/.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sanchezcarlosjr/ljpeg",
    "name": "ljpeg",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "sanchezcarlosjr",
    "author_email": "24639141+sanchezcarlosjr@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/a4/24/f88bcb70888c99914b0f885d69760cc10e8cfc6db1f7b9f8593250060432/ljpeg-3.7.1.tar.gz",
    "platform": "Mac",
    "description": ".. image:: https://readthedocs.org/projects/pyscaffold-demo/badge/?version=latest\n    :alt: ReadTheDocs\n    :target: https://pyscaffold-demo.readthedocs.io/\n\n.. These are examples of badges you might want to add to your README:\n   please update the URLs accordingly\n\n    .. image:: https://api.cirrus-ci.com/github/<USER>/demo-project.svg?branch=main\n        :alt: Built Status\n        :target: https://cirrus-ci.com/github/<USER>/demo-project\n    .. image:: https://readthedocs.org/projects/demo-project/badge/?version=latest\n        :alt: ReadTheDocs\n        :target: https://demo-project.readthedocs.io/en/stable/\n    .. image:: https://img.shields.io/coveralls/github/<USER>/demo-project/main.svg\n        :alt: Coveralls\n        :target: https://coveralls.io/r/<USER>/demo-project\n    .. image:: https://img.shields.io/pypi/v/demo-project.svg\n        :alt: PyPI-Server\n        :target: https://pypi.org/project/demo-project/\n    .. image:: https://img.shields.io/conda/vn/conda-forge/demo-project.svg\n        :alt: Conda-Forge\n        :target: https://anaconda.org/conda-forge/demo-project\n    .. image:: https://pepy.tech/badge/demo-project/month\n        :alt: Monthly Downloads\n        :target: https://pepy.tech/project/demo-project\n    .. image:: https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter\n        :alt: Twitter\n        :target: https://twitter.com/demo-project\n\n.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold\n    :alt: Project generated with PyScaffold\n    :target: https://pyscaffold.org/\n\n|\n\n============\nljpeg\n============\n     Read and transform LJPEG images into modern formats.\n\nInstallation\n============\nWarning: You must have installed the flex parser on your operating system::\n\n    pip install ljpeg\n\nBy default, we offer you a binary called jpeg_static. However, you can produce your jpeg binary::\n\n    cd jpegdir && make\n\nGetting started\n=================\nDownload a set of mammograms with::\n\n     wget -r -q ftp://figment.csee.usf.edu:21/pub/DDSM/cases/normals/normal_08/case4606/\n\nTransform a lot of mammograms parallely::\n\n     find . -type f -name '*.LJPEG' | parallel -j+0 \"ljpeg {} $(pwd)/{/.}.tiff --verify\"\n\nConvert to TIFF (requires the .ics file in the same directory as LJPEG)::\n\n     ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.tiff\n\n\nConvert to TIFF and verify that no information has been lost::\n\n      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.tiff --verify\n\nConvert to jpeg for visualization with down-sizing scale=0.3 (16-bit TIFF is not good for direct visualization)::\n\n      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.jpg --visual --scale 0.3\n\nConvert to TIFF and map gray levels to optical density level::\n\n      ljpeg $(pwd)/C_0029_1.LEFT_CC.LJPEG $(pwd)/output.jpg --od-correct\n\nNote that output file can be any format that's supported by OpenCV (which includes all common types). Most file formats only support 8-bit images, so directly saving into such file formats will cause problems. Add \"--visual\" to normalize color into 8-bit before saving to such file formats.\n\nThe Stanford ljpeg code is in public domain and is therefore OK to be included here. I did minor modification to make the code compile under modern Linux.\n\n\nMaking Changes & Contributing\n=============================\n\nThis project uses `pre-commit`_, please make sure to install it before making any\nchanges::\n\n    pip install pre-commit\n    cd demo-project\n    pre-commit install\n\nIt is a good idea to update the hooks to the latest version::\n\n    pre-commit autoupdate\n\nDon't forget to tell your contributors to also install and use pre-commit.\n\n.. _pre-commit: https://pre-commit.com/\n\nNote\n====\n\nThis project has been set up using PyScaffold 4.2.2.post1.dev3+g01e6e81. For details and usage\ninformation on PyScaffold see https://pyscaffold.org/.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Read and transform LJPEG images",
    "version": "3.7.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e93d800bf175ac86b458d2d23027b6fa2e6e15feca52751969db6faff6a6cd0d",
                "md5": "e6f0400f805895dca0af856c30de027f",
                "sha256": "4971e8666f9c984cc46a8d17cd7c7e7de925dc1de2faaf4c8950e74f4f38d26d"
            },
            "downloads": -1,
            "filename": "ljpeg-3.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6f0400f805895dca0af856c30de027f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 628299,
            "upload_time": "2023-04-19T19:23:52",
            "upload_time_iso_8601": "2023-04-19T19:23:52.975862Z",
            "url": "https://files.pythonhosted.org/packages/e9/3d/800bf175ac86b458d2d23027b6fa2e6e15feca52751969db6faff6a6cd0d/ljpeg-3.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a424f88bcb70888c99914b0f885d69760cc10e8cfc6db1f7b9f8593250060432",
                "md5": "ba35c7b5eacca0fd0966c6d787fe1e21",
                "sha256": "4102ad79207853e56865f794dbf91a8552db398475013af919fc5e5dbf5bc11b"
            },
            "downloads": -1,
            "filename": "ljpeg-3.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ba35c7b5eacca0fd0966c6d787fe1e21",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 630559,
            "upload_time": "2023-04-19T19:23:55",
            "upload_time_iso_8601": "2023-04-19T19:23:55.410711Z",
            "url": "https://files.pythonhosted.org/packages/a4/24/f88bcb70888c99914b0f885d69760cc10e8cfc6db1f7b9f8593250060432/ljpeg-3.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-19 19:23:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "sanchezcarlosjr",
    "github_project": "ljpeg",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "ljpeg"
}
        
Elapsed time: 0.20187s