Unable to Reading pixel data from DICOM and store in an array.

I tried printing with tags but I’m finding difficulty.

What have you tried so far? What result does that produce? Have you looked at the DICOM example? You can access pixel data via reader->GetOutput()->GetBufferPointer().

Thanks for answering. I tried getPixel(), it worked.