Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifm3d::Image overlapping value for 3 channel Image in ptr<T>(row,col) function #339

Closed
inbangsa opened this issue Dec 14, 2021 · 2 comments
Assignees

Comments

@inbangsa
Copy link
Collaborator

inbangsa commented Dec 14, 2021

Describe the bug

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)

@inbangsa inbangsa added the bug label Dec 14, 2021
@inbangsa inbangsa self-assigned this Dec 14, 2021
@github-actions
Copy link

github-actions bot commented Oct 8, 2022

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 8, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

BigBoot pushed a commit that referenced this issue Oct 25, 2024
BigBoot pushed a commit that referenced this issue Oct 25, 2024
Default stdin command changes, issue #339

See merge request syntron/support/csr/ifm3d/ifm3d!403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant