dicomgraphics

package module
v0.0.0-...-badb009 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

dicomgraphics

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/fynelabs/dicomgraphics/cmd/dicomviewer
$ dicomviewer <filename.dcm>

or if you have a folder of image slices:

$ dicomviewer <foldername>

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/fynelabs/dicomgraphics/cmd/dicom2jpg
dicom2jpg <filename.dcm>

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

dicom2gif

A command line utility to convert DICOM image frames to an animated gif file.

Usage
go get -u github.com/fynelabs/dicomgraphics/cmd/dicom2gif
dicom2jpg <filename.dcm>

The command will output a gif file in the same directory as the .dcm. This file will animate through each of the frames of the DICOM file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DICOMImage

type DICOMImage struct {
	// contains filtered or unexported fields
}

func NewDICOMImage

func NewDICOMImage(frame *frame.NativeFrame, level, width int16) *DICOMImage

func (*DICOMImage) At

func (d *DICOMImage) At(x, y int) color.Color

func (*DICOMImage) Bounds

func (d *DICOMImage) Bounds() image.Rectangle

func (*DICOMImage) ColorModel

func (d *DICOMImage) ColorModel() color.Model

func (*DICOMImage) SetFrame

func (d *DICOMImage) SetFrame(frame *frame.NativeFrame)

func (*DICOMImage) SetWindowLevel

func (d *DICOMImage) SetWindowLevel(level int16)

func (*DICOMImage) SetWindowWidth

func (d *DICOMImage) SetWindowWidth(width int16)

func (*DICOMImage) WindowLevel

func (d *DICOMImage) WindowLevel() int16

func (*DICOMImage) WindowWidth

func (d *DICOMImage) WindowWidth() int16

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL