public String getChannelID(int imageIndex, int channelIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; String result = retrieve.getChannelID(imageIndex, channelIndex); if (result != null) return result; } } return null; }
public String getChannelID(int imageIndex, int channelIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; String result = retrieve.getChannelID(imageIndex, channelIndex); if (result != null) return result; } } return null; }
String channelID = src.getChannelID(srcImage, srcChannel); dest.setChannelID(channelID, destImage, destChannel);