Coder Social home page Coder Social logo

dicomgraphics's Introduction

dicomgraphics

This repository has moved to Fyne Labs

A DICOM image viewer and utilities.

dicomviewer

A simple viewer application for DICOM images with variable window parameters.

Built using the Fyne toolkit.

Usage

go get -u github.com/andydotxyz/dicomgraphics/cmd/dicomviewer
dicomviewer <filename.dcm>

And you should see something like the following:

Data in the screenshot is CC BY 3.0 from Clark K, Vendt B, Smith K, Freymann J, Kirby J, Koppel P, Moore S, Phillips S, Maffitt D, Pringle M, Tarbox L, Prior F. The Cancer Imaging Archive (TCIA): Maintaining and Operating a Public Information Repository, Journal of Digital Imaging, Volume 26, Number 6, December, 2013, pp 1045-1057. (paper)

dicom2jpg

A command line utility to convert DICOM image frames to jpeg files.

Usage

go get -u github.com/andydotxyz/dicomgraphics/cmd/dicom2jpg
dicom2jpg <filename.dcm>

The command will output a jpg file in the same directory as the .dcm.

dicomgraphics's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ag-go

dicomgraphics's Issues

MIP and MinIP

Would it be possible to do MIP and MinIP CT reconstructions?

compiles but GUI does not open

using gomodules and latest golang on mac.

go run fails with:


mkdir -p /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics
cd /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics && cd .. && rm -rf dicomgraphics &&  git clone ssh://[email protected]/andydotxyz/dicomgraphics.git
Cloning into 'dicomgraphics'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 63 (delta 24), reused 52 (delta 17), pack-reused 0
Receiving objects: 100% (63/63), 371.44 KiB | 1.11 MiB/s, done.
Resolving deltas: 100% (24/24), done.
#cd /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics && git checkout master
cd /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics/cmd/dicomviewer && go run main.go
# fyne.io/fyne/internal/driver/gl
../../../../pkg/mod/fyne.io/[email protected]/internal/driver/gl/gl_darwinfix.go:10:5: warning: 'NSOpenGLContext' is deprecated: first deprecated in macOS 10.14 - Please use Metal or MetalKit. [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:202:12: note: 'NSOpenGLContext' has been explicitly marked deprecated here
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x41af3e7]

goroutine 20 [running]:
fyne.io/fyne/dialog.(*dialog).setButtons(0xc0002d0000, 0x43faf60, 0xc0002e4000)
        /Users/apple/workspace/go/pkg/mod/fyne.io/[email protected]/dialog/base.go:79 +0x277
fyne.io/fyne/dialog.createTextDialog(0x438adbf, 0x12, 0x43aa1b2, 0x28, 0x43edde0, 0xc0000922c0, 0x0, 0x0, 0x0, 0x0)
        /Users/apple/workspace/go/pkg/mod/fyne.io/[email protected]/dialog/information.go:17 +0x221
fyne.io/fyne/dialog.NewInformation(...)
        /Users/apple/workspace/go/pkg/mod/fyne.io/[email protected]/dialog/information.go:26
main.showError.func1(0x43aa1b2, 0x28)
        /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics/cmd/dicomviewer/main.go:198 +0x6c
created by main.showError
        /Users/apple/workspace/go/src/github.com/andydotxyz/dicomgraphics/cmd/dicomviewer/main.go:197 +0x49
exit status 2
make: *** [go-sample-run] Error 1

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.