i want to extract an interpolated straight line between two arbitrary points from a equidistant 3D matrix, such as:
data_points_on_line=extract_line_from_3D_matrix(matrix,point1,point2,number_of_data_values_needed)
with the 3D matrix matrix, start and end point point1,point2 and the resolution of returned data between point1 and point2 given by an integer with number_of_data_values_needed.
i know that it's pretty simple when extracting data from a 2d array with scipy.ndimage but does anybody know whether there's already a function in scipy or numpy which can do that in 3D?
many thanks in advance!