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

rgb2raw branch mosaic problem #7

Open
oneTaken opened this issue May 25, 2020 · 0 comments
Open

rgb2raw branch mosaic problem #7

oneTaken opened this issue May 25, 2020 · 0 comments

Comments

@oneTaken
Copy link

In the Rgb2Raw branch,the feature map before Mosaic is HxWx3,and you use this code to generate final raw output:

def mosaic(images):
  shape = images.shape
  red = images[:, 0, 0::2, 0::2]
  green_red = images[:, 1, 0::2, 1::2]
  green_blue = images[:, 1, 1::2, 0::2]
  blue = images[:, 2, 1::2, 1::2]
  images = torch.stack((red, green_red, green_blue, blue), dim=1)
  # images = tf.reshape(images, (shape[0] // 2, shape[1] // 2, 4))
  return images

this just use litter data of images to generate raw, I find some details in your paper in Section3.1,

the Bayer sampling function f_Bayer is applied

So why just output a feature map with shape HxWx1 to full use the data?

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

1 participant