arrayFromVolume

build
segmentation

(Bakkari) #1

Hi everyone, could you please tell me how can I find the equation or the mathematical procedure which is behind the arrayFromVolume?
Thank you in advance.


(Sam Horvath) #2

The code for arrayFromVolume is here: https://github.com/Slicer/Slicer/blob/5d70815798b8f324b2a14ad6e9cfa1634edf9ba9/Base/Python/slicer/util.py#L739

It basicly just provides a numpy view into memory managed by VTK


(Bakkari) #3

Thank you Sam_Horvath for your reply. However, I am looking for the mathematical procedure(e.g., equations etc…).


(Andras Lasso) #4

There is no mathematical procedure in arrayFromVolume. If you need to describe it as an equation: voxelValueInArray = voxelValueInVolumeNode.