Code Monkey home page Code Monkey logo

codechallenge's Introduction

CodeChallenge

Part1: DICOM Input and Output

1. Test dicom convert to hdf5 and json file:

Test case:

python3 dicom_to_hdf5_json.py -i ../dicom_data -h ../hdf5_data/hdf5_data.hdf5 -j ../json_data/json_data.json

"../dicom_data" ------ path to input DICOM directory
"../hdf5_data/hdf5_data.hdf5" ------ path to output hdf5 file and filename
"../json_data/json_data.json" ------ path to output JSON file

2. Test hdf5 convert to dicom file

Test case:

python3 hdf5_to_dicom.py -h ../hdf5_data/hdf5_data.hdf5 -d ../template.dcm -o ../dicom_output/

"../hdf5_data/hdf5_data.hdf5" ------ path to input hdf5 file
"../template.dcm" ------ path to the template DICOM directory
"../dicom_output/" ------ path to output DICOM directory

Part2: Inference Pipeline and 3D Blurring Module

Design

At first, I implement the gaussian algorithm to blur a 2D image, and then extend to blur 3D volumne, pixel data computaion is based on hdf5 file.

1. Test 3d blur algorithm(can run this python file directrlty)

python3 gaussian_blur3d_starter.py

2. Test Inference Pipeline pipeline(can run this python file directrlty)

python3 inference_pipeline_starter.py

Part3: A Web Backend

Design

I wrote a simple front end page can send Post and Get request through that textfield. Involve Interference Pipeline to execute background job task.
WebPage
Run server at directory of Part3
./manage.py runserver

Test1: Post request(localhost:8000)

Can use postman or just type path in the post textfield, I use 3dblurr function as example in Inference Pipeline, it might take a long time to run this function at background.
Example: /job/?job_name=3dblur&in_dir=./part3_backend/input_volume/mytestfile.hdf5

Test2: Get request

Can type path in the get textfield or type in broswer url field.
Example: query/601

codechallenge's People

Contributors

zzhang115 avatar

Watchers

 avatar

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.