HUB
Sign inSign up
extractors-terra-stereo-rgb logo

clowder/extractors-terra-stereo-rgb

By clowder

•Updated almost 9 years ago

Stereo Image Demosaic

Image
0

440

clowder/extractors-terra-stereo-rgb repository overview

⁠Demosaic Extractor

This extractor processes binary stereo images using metadata and outputs demosaicked JPG and TIFF images.

Input

  • Evaluation is triggered whenever a file is added to a dataset
  • Following data must be found
    • _left.bin image
    • _right.bin image
    • dataset metadata for the left+right capture dataset; can be attached as Clowder metadata or included as a metadata.json file

Output

  • The dataset containing the left/right binary images will get left/right JPG and TIFF images
⁠Docker

The Dockerfile included in this directory can be used to launch this extractor in a container.

Building the Docker image

docker build -f Dockerfile -t terra-ext-demosaic .

Running the image locally

docker run \
  -p 5672 -p 9000 --add-host="localhost:{LOCAL_IP}" \
  -e RABBITMQ_URI=amqp://{RMQ_USER}:{RMQ_PASSWORD}@localhost:5672/%2f \
  -e RABBITMQ_EXCHANGE=clowder \
  -e REGISTRATION_ENDPOINTS=http://localhost:9000/clowder/api/extractors?key={SECRET_KEY} \
  terra-ext-demosaic

Note that by default RabbitMQ will not allow "guest:guest" access to non-local addresses, which includes Docker. You may need to create an additional local RabbitMQ user for testing.

Running the image remotely

docker run \
  -e RABBITMQ_URI=amqp://{RMQ_USER}:{RMQ_PASSWORD}@rabbitmq.ncsa.illinois.edu/clowder \
  -e RABBITMQ_EXCHANGE=terra \
  -e REGISTRATION_ENDPOINTS=http://terraref.ncsa.illinosi.edu/clowder//api/extractors?key={SECRET_KEY} \
  terra-ext-demosaic
⁠Dependencies
  • All the Python scripts syntactically support Python 2.7 and above. Please make sure that the Python in the running environment is in appropriate version.

  • All the Python scripts also rely on the third-party library including: PIL, scipy, numpy and osgeo.

⁠Notice
  • Since we don't have the true value of field of view in 2 meter, we use some parameters to estimate fov, once we get the true value of fov, we should update this code.
Tag summary
Recent tags
Content type
Image
Digest
Size
758.9 MB
Last updated
over 9 years ago
docker pull clowder/extractors-terra-stereo-rgb:latest