You seem to have correctly read the image. ITK does not do visualization, just reading/processing/writing. For a quick check, you could do std::cout<<img;.
For visualizations, ITK-SNAP (simpler, quicker) or 3D Slicer (more powerful, more complicated).
Thank you for the prompt response, Dzenanz. On another note is it possible to utilize VTK for visualization of these files ? I came across the class vtkNrrdReader, but unfortunately I couldnāt find any examples.
Thanks Dzenan for your help, meanwhile I was able to write a program to visualize the .nrrd files. But I am getting the following error when I try to build it :
|Error|C2440|āfunction-style-castā: cannot convert from āinitializer listā to āvtkSmartPointervtkImageMapper3Dā