Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Explanation needed  #1

@SoebHussain

Description

@SoebHussain
	prob_map = cv::Mat(frame.size(), CV_32FC1);
	cv::Mat frame_bin;
	cv::LUT(frame, bin_mapping, frame_bin);

	float *p_prob_map = prob_map.ptr<float>(0);
	cv::MatIterator_<cv::Vec3b> it, end;
	for (it = frame_bin.begin<cv::Vec3b>(), end = frame_bin.end<cv::Vec3b>(); it != end; ++it)
	{
		*p_prob_map++ = prob_lut.at<float>((*it)[0], (*it)[1], (*it)[2]);
	}

Hi
Thanks for providing such a beautifully written code. I would be very thankful if you could explain what the above lines of code are doing.
Thanks 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions