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

cannot generate exactly the same projection maps from original 2D slices #6

Open
ustlsh opened this issue Jan 4, 2022 · 1 comment

Comments

@ustlsh
Copy link

ustlsh commented Jan 4, 2022

Hi,

I am wondering about the process of generating projection maps B1 and B4. In the paper, it says that B1 and B4 are the average projection of OCT and OCTA volumes accordingly. I tried to use the original b-scan images, i.e., .bmp files to generate them. But I cannot get exactly the same value of the downloaded projection maps.

What I have done is, for 3M images:

  1. Concatenate 304 2D slices (304x640) along dim0, to form 304x304x640 volume.
  2. Use img = np.mean(volume, axis=0) to project to 304x304 size image.
  3. Normalize to 0-255 by (img-img.min)*255/(img.max-img.min)
  4. Flip img to align with the given projection labels.
    The results look darker than the given projection maps. I also check the value for each pixel, and they are different. Any process that I miss or anywhere I make the mistake?
    Projected by above steps:

selfprocess

Ground truth projection map:

labelproject

@chaosallen
Copy link
Owner

chaosallen commented Jan 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants