AIT Matchbox Scenario Compare Image Pair based on Profile
Created: 2012-11-24 23:23:45
In this scenario matchbox will compare given image pair based on extracted profile information. User will get a histogram intersection distance value in result. Small value means high similarity, high value means different images. Matchbox in this scenario is installed on remote Linux VM. Digital collection is stored on Windows machine.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
AIT Matchbox Scenario Compare Image Pair based on Profile |
Descriptions (1)
In this scenario matchbox will compare given image pair based on extracted profile information. User will get a histogram intersection distance value in result. Small value means high similarity, high value means different images. Matchbox in this scenario is installed on remote Linux VM. Digital collection is stored on Windows machine. |
Dependencies (0)
Inputs (3)
Name |
Description |
orig_dirlist_file_path |
Path to directory on server where digital collection that we are going to analyse is located.
|
image1 |
The image name should contain also its extension. E.g. 00000007.jp2
|
image2 |
The image name should contain also its extension. E.g. 00000007.jp2
|
Processors (4)
Name |
Type |
Description |
matchbox |
externaltool |
This command starts comparison of two images based on previously extracted image profiles. |
parse_matchbox_stdout |
beanshell |
Script#!Pairtree pt = new Pairtree();
#!String id = pt.mapToId("/mnt/abonas/linktree/", barcode_path.substring(0,barcode_path.lastIndexOf("/")));
String duplicates_result = "";
duplicates_result += target_collection_path + ":\n " + image1 + " vs. " + image2;
StringTokenizer st = new StringTokenizer(matchbox_stdout, "\n");
boolean startDuplicates = false;
boolean hasDuplicates = false;
while (st.hasMoreTokens()) {
String token = st.nextToken();
if (startDuplicates) {
if (token.contains("")) {
duplicates_result += token + "\n";
hasDuplicates = true;
}
}
if (token.contains("ImageProfile")) {
startDuplicates = true;
}
} |
extract_features_image1 |
externaltool |
This command extracts profile features of passed image in order to compare it later with another image profile. |
extract_features_image2 |
externaltool |
This command extracts profile features of passed image in order to compare it later with another image profile. |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
parse_matchbox_stdout |
|
target_collection_path
matchbox_stdout
image1
image2
|
duplicates_result
|
Outputs (3)
Name |
Description |
results |
|
stderr |
|
stdout |
|
Datalinks (14)
Source |
Sink |
orig_dirlist_file_path |
matchbox:target_collection_path |
image1 |
matchbox:image1 |
image2 |
matchbox:image2 |
matchbox:STDOUT |
parse_matchbox_stdout:matchbox_stdout |
orig_dirlist_file_path |
parse_matchbox_stdout:target_collection_path |
image2 |
parse_matchbox_stdout:image2 |
image1 |
parse_matchbox_stdout:image1 |
image1 |
extract_features_image1:image1 |
orig_dirlist_file_path |
extract_features_image1:target_collection_path |
image2 |
extract_features_image2:image2 |
orig_dirlist_file_path |
extract_features_image2:target_collection_path |
parse_matchbox_stdout:duplicates_result |
results |
matchbox:STDERR |
stderr |
matchbox:STDOUT |
stdout |
Coordinations (2)
Controller |
Target |
extract_features_image2 |
matchbox |
extract_features_image1 |
extract_features_image2 |
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 (0)
None
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