Extract histogram features from image file
Created: 2011-06-16 17:09:20
Last updated: 2012-04-04 08:01:37
As a template for creation of image workflows was used xa-toolwrapper project from Sven Schlarb (https://github.com/openplanets/scape/tree/master/xa-toolwrapper). This project enables creation of WSDL web service that wraps command line tool like ‘extractFeatures’ or ‘create’. The workflow for ‘extractFeatures’ tool has two input parameters. The URL to the input image file and the number of histogram bins as integer. This workflow extracts histogram features from passed image file. The output is an XML file with histogram data. Also the workflow provides output of processing log, return code (0 if successful) and image data in graphic form.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (2)
Name |
Description |
extractFeaturesExt_Request1_histogramBinsNumber |
|
extractFeaturesExt_Request1_inputFile |
|
Processors (4)
Name |
Type |
Description |
extractFeaturesExt |
wsdl |
Wsdlhttp://localhost:8080/axis2/services/SCAPEExtractImageFeaturesExt10Service?wsdlWsdl OperationextractFeaturesExt |
extractFeaturesExt_Request1 |
xmlsplitter |
|
extractFeaturesExt_Response1 |
xmlsplitter |
|
Get_Image_From_URL |
localworker |
Scriptif ((url == void) || (url == null)) {
throw new RuntimeException("The url must be specified");
}
URL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
} else {
inputURL = new URL(url);
}
int bytesRead = 0;
int totalBytesRead = 0;
InputStream is = inputURL.openStream();
ByteArrayOutputStream os = new ByteArrayOutputStream();
byte[] buffer = new byte[2048];
while (true) {
bytesRead = is.read(buffer);
if (bytesRead == -1) {
break;
}
os.write(buffer, 0, bytesRead);
}
image = os.toByteArray();
is.close();
os.close();
|
Outputs (4)
Name |
Description |
extractFeaturesExt_Response1_outputFile |
|
extractFeaturesExt_Response1_processingLog |
|
extractFeaturesExt_Response1_returnCode |
|
Get_Image_From_URL_image |
|
Datalinks (9)
Source |
Sink |
extractFeaturesExt_Request1:output |
extractFeaturesExt:Request1 |
extractFeaturesExt_Request1_histogramBinsNumber |
extractFeaturesExt_Request1:histogramBinsNumber |
extractFeaturesExt_Request1_inputFile |
extractFeaturesExt_Request1:inputFile |
extractFeaturesExt:Response1 |
extractFeaturesExt_Response1:input |
extractFeaturesExt_Request1_inputFile |
Get_Image_From_URL:url |
extractFeaturesExt_Response1:outputFile |
extractFeaturesExt_Response1_outputFile |
extractFeaturesExt_Response1:processingLog |
extractFeaturesExt_Response1_processingLog |
extractFeaturesExt_Response1:returnCode |
extractFeaturesExt_Response1_returnCode |
Get_Image_From_URL:image |
Get_Image_From_URL_image |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
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