- std::vector<tree::Node*>::iterator i;
- std::string row;
- std::string col;
- std::string plane;
-
- //Validation between image sizes
- for (i=sel.begin(); i!=sel.end() && valid; ++i)
- {
- if(i==sel.begin())
- {
- row=(*i)->GetAttribute("D0028_0010");
- col=(*i)->GetAttribute("D0028_0011");
- plane=(*i)->GetAttribute("D0028_0012");
- level=(*i)->GetLevel();
-
- }
- else
+ row=(*sel).GetAttribute("D0028_0010");
+ col=(*sel).GetAttribute("D0028_0011");
+ plane=(*sel).GetAttribute("D0028_0012");
+ level=(*sel).GetLevel();
+ }
+ else
+ {
+ if(((*sel).GetAttribute("D0028_0010"))!=row ||
+ ((*sel).GetAttribute("D0028_0011"))!=col ||
+ ((*sel).GetAttribute("D0028_0012"))!=plane)