GithubHelp home page GithubHelp logo

crbs / image_viewer_data_converter Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 26 KB

Scripts for converting images to the compatible format for the CIL Image Viewer

License: MIT License

PHP 27.31% Python 60.50% Shell 12.19%

image_viewer_data_converter's Introduction

Image_Viewer_Data_Converter

Scripts for converting images to the compatible format for the CIL Image Viewer

Requirements

  • Python3
    • numpy
    • sckit-image
    • joblib
  • PHP 7.2+
    • Sqlite
  • IMOD
  • ImageMagick
  • GDAL (gdal2tiles.py)

Convert images to the sqlite files for the CIL Image Viewer

python3 conver2galNsqlite.py INPUT_IMAGE_FOLDER OUTPUT_GDAL_FOLDER OUTPUT_SQLITE_FOLDER

Assumption: The image name contains the Z slice index number. For example, "temp.0000.tif"

Convert images to the GDAL tile images only

python3 conver2gal.py INPUT_IMAGE_FOLDER OUTPUT_GDAL_FOLDER

Convert the GDAL tile images to the Sqlite files only

python3 conver2Sqlite3.py INPUT_GDAL_FOLDER OUTPUT_SQLITE_FOLDER

Invert the image color

python3 invertImages.py INPUT_IMAGE_FOLDER OUTPUT_INVERTED_FOLDER

Rescale image contrast

python3 conv2uint8-sph.py INPUT_IMAGE_FOLDER OUTPUT_ENHANCED_FOLDER
  • This script requires a huge amount of RAM if the image size is in the Gigabyte range
python3 conv2uint8-ww.py INPUT_IMAGE_FOLDER OUTPUT_ENHANCED_FOLDER
  • This script rescales the images using ImagMagick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.