How to acquire the histogram statistic data from the vtkPolyData?

Hi all :slight_smile:

I want to acquire the histogram statistics data from a specific row, after loading the 3D model file.
(ex, Max / Min / Average / Std)

In OpenCV, it can acquire the data using the as below code:

cv::Mat image(rows, cols, CV_8U);
cv::Mat line = image.row(num); // a specific row
cv::Scalar mean, dev;
cv::meanStdDev(line, mean, dev);

Similar to the above example, can I acquire the histogram statistics data from a specific row of vtkPolyData?

Actually, my purpose is showing the plot chart on specific row data of vtkPolyData.

Please, give me advise.

Thank you :slight_smile: