Detect compressed TIFF files and remove the compression
Created: 2011-06-15 10:45:45
Last updated: 2012-03-08 07:58:54
The workflow takes a list of TIFF images as input, identifies the "Group 4 Fax" comressed TIFF images and converts them to uncompressed TIFF images using convert. Finally it characterises the converted image. This version of the workflow replaces the web services of the original workflow with tool services.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Sven Schlarb
David Withers |
Titles (1)
Remove compression from compressed TIFF files (Tool service version). |
Descriptions (1)
The workflow takes a list of TIFF images as input, identifies the "Group 4 Fax" comressed TIFF images and converts them to uncompressed TIFF images using convert. Finally it characterises the converted image.
This version of the workflow replaces the web services of the original workflow with tool services. |
Dependencies (0)
Inputs (2)
Name |
Description |
url_to_textfile_with_image_urls |
URL of a textfile that contains a list of urls serving as the input of this workflow. It contains compressed and uncompressed images.
|
csresult_regex |
Regular expression for the compression scheme value
|
Processors (9)
Name |
Type |
Description |
Get_list_of_images |
workflow |
|
XPath_Service |
xpath |
Xpath Expression/default:fits/default:metadata/default:image/default:compressionScheme |
Flatten_List |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
Beanshell |
beanshell |
ScriptList tiff_images_out_list = new ArrayList();
for( int i = 0; i < tiff_images_in_list.size(); i++) {
String item = tiff_images_in_list.get(i);
String charres = charactres_in_list.get(i);
if(charres.matches(csresult_regex))
tiff_images_out_list.add(item);
}
|
convertTIFFtoTIFF |
externaltool |
|
characteriseFile |
externaltool |
|
characteriseFile_3 |
externaltool |
|
fetchUrl |
externaltool |
|
fetchUrl_2 |
externaltool |
|
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
Beanshell |
|
tiff_images_in_list
charactres_in_list
csresult_regex
|
tiff_images_out_list
|
Outputs (5)
Name |
Description |
2_group_4_fax_compressed_images |
|
1_characterisation_result |
Characterisation result
|
3_uncompressed_result_image |
|
4_processing_log |
|
5_uncompressed_characterisation |
|
Datalinks (16)
Source |
Sink |
url_to_textfile_with_image_urls |
Get_list_of_images:inputUrl |
characteriseFile_3:output |
XPath_Service:xml_text |
XPath_Service:nodelist |
Flatten_List:inputlist |
Get_list_of_images:list |
Beanshell:tiff_images_in_list |
Flatten_List:outputlist |
Beanshell:charactres_in_list |
csresult_regex |
Beanshell:csresult_regex |
fetchUrl_2:output |
convertTIFFtoTIFF:input |
convertTIFFtoTIFF:output |
characteriseFile:input |
fetchUrl:output |
characteriseFile_3:input |
Get_list_of_images:list |
fetchUrl:inputUrl |
Beanshell:tiff_images_out_list |
fetchUrl_2:inputUrl |
Beanshell:tiff_images_out_list |
2_group_4_fax_compressed_images |
Flatten_List:outputlist |
1_characterisation_result |
convertTIFFtoTIFF:output |
3_uncompressed_result_image |
convertTIFFtoTIFF:STDERR |
4_processing_log |
characteriseFile:output |
5_uncompressed_characterisation |
Uploader
License
All versions of this Workflow are
licensed under:
Version 3 (latest)
(of 3)
Credits (1)
(People/Groups)
Attributions (1)
(Workflows/Files)
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (1)
(Workflows/Files)
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment