-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |