如何使用 C++ 从体积中提取切片

问题描述 投票:0回答:0

我想根据给定的任意平面从三维数组中获取横截面。如图所示: extract slice from volume

有一个包含形状的 3D 数据的数组,例如(300,1024,1440),你如何通过这个数据集绘制一个由点和法线(类似于晶体学中的 hkl 平面)给出的平面?

我在互联网上搜索了两天,但找不到使用 C++ 解决此问题的方法。但是我找到了一个 MATLAB 程序。 (https://www.mathworks.com/matlabcentral/fileexchange/32032-extract-slice-from-volume

我想要的:

int** get_slice_image(int*** data, int* data_shape, int* image_shape, /*some thing to define an arbitrary plane*/){
    int** image;
    /*
    some code
    */
    return image;
}
c++ multidimensional-array slice volume
© www.soinside.com 2019 - 2024. All rights reserved.