Hi,
I am writing my own KNIME node to use org.knime.ip classes (stable release) to load pictures from www.ebi.ac.uk web services (eg. interproscan) so I'm not loading the images from IP nodes, but rather my own with the http SOAP responses.
However, the PNG images from EBI are coloured by the algorithm(s) which produced results. But after creating a table with an RealImageCell with the following fragment during execute():
final ImageReference ref = new ImageReference(filename, "", filename);
Image<? extends RealType> img = is.getImage(ref, m_sel.createSubset(image_source.getDimensions(ref)));
DataCell png_cell = new RealImageCell(img);
container.addRowToTable(new DefaultRow(outstanding_jobs.get(key), new StringCell(key), xml, png_cell));
// create image cell using fname as a reference
final ImageReference ref = new ImageReference(fname, "", fname);
Image<? extends RealType> img = is.getImage(ref, m_sel.createSubset(is.getDimensions(ref)));
DataCell png_cell = new RealImageCell(img);
container.addRowToTable(new DefaultRow(outstanding_jobs.get(key), new StringCell(key), xml, png_cell));
The image cells are not in colour, but greyed out. I thought it might that only a single plane was being loaded, but I dont understand how the API works to use it effectively. I guess I am not quite sure where to begin.
thanks for your help,