hey,

I have pasted an code excerpt from mitk::dicomseriedreader documentation
"usage" and have a doubt regarding the underlying concept.

DicomSeriesReader::FileNamesGrouping allImageBlocks =
DicomSeriesReader::GetSeries("/home/who/dicom/");

DicomSeriesReader::StringContainer seriesToLoad = allImageBlocks[...]; //
decide what to load

DicomSeriesReader::StringContainer oneBlockSorted =
DicomSeriesReader::SortSeriesSlices(seriesToLoad);

 DataNode::Pointer node = DicomSeriesReader::LoadDicomSeries(
oneBlockSorted );
 Image::Pointer image = dynamic_cast<mitk::Image*>( node->GetData() );


can anyone explain the 2nd line in the code.? what does it mean
allImageBlocks[...] ?
also when the datanode::pointer node loads the sorted block..doesnt it mean
that it contains all the slices ? if yes,then how can i use all the slices
from that "oneBlockSorted".
I am doubtful because the last line accesses the data in the node with
GetData.

shouldnt it be a loop.. something like
while (! node.size) {
Image::Pointer image = dynamic_cast<mitk::Image*>( node->GetData() );
....
...
... // proceesing using the "image"
}

thanks


On Sat, Mar 1, 2014 at 5:54 PM, Jatin Nath <[email protected]>wrote:

> hey,
>
> I want to trial run a 2D-2D image registration program that i have been
> working on mitk I have compiled and got the executables from the source
> files in the mitk for step1-9 and have checked to see that they work
> perfectly and exactly how I hope to see results from my image registration
> program.What exactly I am trying to do right now is that, I have modified
> the STEP 6 code from tutorials to run the generate2() in
> mitkBSplineRegistration.cpp in place of regiongrowing() and having troubles
> with the including Qmitk directories in CMakeLists.txt which I believe
> keeps giving me errors like QmitkRenderWindow.h: no such file or directory
> and QmitkRegisterClasses.h: No such file or directory . Can anybody please
> suggest the changes I need to make to CMakeLists.txt or files.cmake so I
> can get the trial program running. After this I need to trying registering
> 3 D dicom datasets and I still am grappling with issues that are not
> algorithm based where I shoulde be primarily focussing. Any suggestions
> please..
>
> Jatin
>
>
>
> On Thu, Feb 27, 2014 at 8:58 AM, Daniel Maleike <[email protected]
> > wrote:
>
>> On 26.02.2014 18:45, Jatin Nath wrote:
>> > Hi all,
>> >
>> > I am trying write a program for registration of two 3D datasets of DICOM
>> > images. essentially i need to read the reference datasets using
>> > mitkDicomSeriesReader and and using the m_ReferenceImage (which i hope i
>> > can get the 2D image for each image from the 3d dataset via iteration)
>> > and use itk GDCM to get the filenames for the 2nd dataset in order to
>> > pass each 2d itk image to the mitkbsplineregsitration function .
>> > mitkDicomSeriesReader.h has the function LoadDicomSeries and from the
>> > documentation I havent been completely able to decipher how to access
>> > each 2d image (which according to me shoulde be accessible later in the
>> > mitkbsplineregistration as m_ReferencedImage). Can anyone suggest a way
>> > to use the mitkDicomSeriesReader::LoadDicomseries if possible with a
>> > code bit. I have gone through the "usage " in the documentation, but
>> > still find it a bit unsettling. Sorry if my question is a little
>> > unclear, or too basic. I would appreciate any suggestions.
>>
>> Dear Jatin,
>>
>> from how I understand your question, you need 2D images for your
>> registration, both on the reference and the moving image side.
>>
>> 1. From the "FileNamesGrouping" structure that you get from GetSeries(),
>> you can access the filenames that will be loaded via GetFilenames(). You
>> could load these individually (ITK or MITK) and have true 2D images.
>>
>> 2. If you also need the 3D image that DicomSeriesReader would create,
>> you could extract slices via mitk::ExtractSliceFilter or
>> mitk::ImageSliceSelector. Especially for the latter one I suggest to
>> look for example usage in the MITK code.
>>
>> Hope this helps a bit.
>>
>> Regards,
>> Daniel
>>
>> --
>> Dr. Daniel Maleike                           Telefon: + 49 6221 647976 3
>> Mint Medical GmbH, Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
>> Geschäftsführer: Dr. Matthias Baumhauer
>> Registergericht Mannheim, HRB 709351
>>
>>
>> ------------------------------------------------------------------------------
>> Flow-based real-time traffic analytics software. Cisco certified tool.
>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
>> Customize your own dashboards, set traffic alerts and generate reports.
>> Network behavioral analysis & security monitoring. All-in-one tool.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>
>
>
>
> --
> Jatin Nath,
> School of BioMedical Engineering,
> Indian Institute of Technology (Banaras Hindu University), Varanasi
>



-- 
Jatin Nath,
School of BioMedical Engineering,
Indian Institute of Technology (Banaras Hindu University), Varanasi
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to