I am trying to convert pcl pointXYZ to eigen vector
Eigen::Vector4f min (minPnt.x, minPnt.y, minPnt.z);
Eigen::Vector4f max (maxPnt.x, maxPnt.y, maxPnt.z);
where minPnt and maxPnt are of type pcl::PointXYZ. However, I get an error as "error C2338: THIS_METHOD_IS_ONLY_FOR_VECTORS_OF_A_SPECIFIC_SIZE" . Could you suggest some other approaches or let me know if my approach is wrong.