You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following code produce an overlapping values, for 3 channel xyz image.
auto image = img->XYZImage();
for (int i = 0; i < image.height(); i++)
{
for (int j = 0; j < image.width(); j++)
{
auto ptr = image.ptr<float>(i, j);
auto z = ptr[0];
auto x = ptr[1];
auto y = ptr[2];
std::cout << "(" << x << "," << y << "," << z << ")";
}
output
(0.538664,-1.32642,1.66867)
(-1.32642,1.6694,0.538664)
(1.6694,0.522013,-1.32642)
(0.522013,-1.32461,1.6694)
(-1.32461,1.66976,0.522013)
(1.66976,0.505327,-1.32461)
The text was updated successfully, but these errors were encountered:
Describe the bug
Following code produce an overlapping values, for 3 channel xyz image.
output
(0.538664,-1.32642,1.66867)
(-1.32642,1.6694,0.538664)
(1.6694,0.522013,-1.32642)
(0.522013,-1.32461,1.6694)
(-1.32461,1.66976,0.522013)
(1.66976,0.505327,-1.32461)
The text was updated successfully, but these errors were encountered: