How to input IJK coordinate and get the value of the volume as txt

Hi all,

I am trying to access to what is displayed in the Data Probe Module. I need to input IJK coordinate as array and get the value of the volume, without using the mouse at all.
I looked at the example


However, it depends on the mouse location.
So, where do all the data in Data Probe come from?
image
And what function should I use to get these ‘L’, ‘F’, ‘B’ data as array?
I mean, since ‘infoWidget.layerValues[layer].text’ prints the value of the volume, ‘infoWidget = slicer.modules.DataProbeInstance.infoWidget’ must get the data array from some function. How can I use it? Or is there any driect way to input IJK coordinate as array and get the value of the volume?
Thank you !

Hello,

Both questions are answered in the script repository, starting from here.