Hi Sergio,
I was just working on that this morning. Here's what I do:
'''
QList nodes = this->GetDataManagerSelection();
mitk::DataNode* node = nodes.front();
mitk::BaseData* data = node->GetData();
std::string path = this->GetDataPath(data);
/**
Get Image path from mitk::BaseData.
@par
Hi Sergio,
yes, this sounds reasonable.
Since you mentioned calling commandline tools, I'd like to point you to
the Command Line Modules that are supported by one of the MitkWorkbench
views and could solve part of your needs:
http://www.commontk.org/index.php/Documentation/Command_Line_Inter
Thanks Daniel
I was trying to interface with a command line tool. Guess best solution is
to write the the image back to disk before calling the executable.
Regards
On 8 October 2015 at 11:49, Daniel Maleike
wrote:
> On 08.10.2015 11:42, Sergio Vera wrote:
>
> Dear mitk-users
>
> I'm looking fo
On 08.10.2015 11:42, Sergio Vera wrote:
Dear mitk-users
I'm looking for the filename of an image loaded into MITKWorkbench.
I want to know the path and filename of an image, but the datanode
that is sent to my plugin knows only the path and name properties.
Is there a way to discover the fil
Dear mitk-users
I'm looking for the filename of an image loaded into MITKWorkbench.
I want to know the path and filename of an image, but the datanode that is
sent to my plugin knows only the path and name properties.
Is there a way to discover the filename of the image with extension
included?