Skip to content

Commit

Permalink
Usage guide for v0.1.0-a0
Browse files Browse the repository at this point in the history
  • Loading branch information
Almeida-a committed Aug 31, 2022
2 parents acc9f49 + c48501f commit e8598a3
Showing 1 changed file with 96 additions and 3 deletions.
99 changes: 96 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,97 @@
# imodec-dicoogle-plugin
Plugin to the [Dicoogle](https://github.com/bioinformatics-ua/dicoogle/) project providing the services of modern image compression codecs.
# Imodec Dicoogle Plugin set
Imodec (Image [Modern] Codecs) is a set of plugins
for the [Dicoogle](https://github.com/bioinformatics-ua/dicoogle/)
project providing the services of modern image compression codecs.

Work in progress...

## Building from source
If you want, you can build from source using the `mvn`
building tool.

For that, just run:
```shell
mvn install
```

At the root directory of this project.

## How to use

### Pre-requisites

This plugin set can only be used in Linux.
Other OSs are not (yet) supported.

You need to install
[rust](https://www.rust-lang.org/tools/install):
```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

You also need to install the following codecs
to your machine:
```shell
sudo apt install webp
cargo install cavif avif-decode
```

### Plugging into Dicoogle

In order to use this plugin, just copy the generated
*_jar-with-dependencies_ jar file to the Dicoogle
Plugins folder, like the following example:

```shell
cp ~/imodec-dicoogle-plugin/target/imodec-dicoogle-plugin-0.0.0-jar-with-dependencies.jar ~/DicoogleDir/Plugins
```

### Store-SCU operation

This is where the modern codec encoding takes place.
You can choose the default format to encode
the images, by adding the following `codec` tag to the
xml settings file (path `Plugins/settings/imodec-plugin-set.xml`):
```xml
<configuration>
...
<codec>jxl</codec>
</configuration>
```
Possible values are: `jxl`, `avif` and `webp`.


You need to use a specific tool for the store operation.
One of the following tools are suggested.

#### storescu - dcmtk
To install:
```shell
sudo apt install dcmtk
```

To use (using the default aetitle and
port configurations for the dicoogle PACS):
```shell
storescu -aec DICOOGLE-STORAGE localhost 6666 ...FILES
```

#### dicom-storescu - dicom-rs

To install the tool:
```shell
cargo install dicom-storescu
```

To use:
```shell
dicom-storescu --called-ae-title DICOOGLE-STORAGE localhost:6666 ...FILES
```

### View the resulting images
In order to check the stored images, you need to
input an url to your browser with the
SOP Instance UID of the respective dicom object,
following the next example:
```
http://localhost:8080/imodec/view?siuid=2.25.69906150082773205181031737615574603347
```

0 comments on commit e8598a3

Please sign in to comment.