Comments (2)
So, I have made some progress on this issue.
It seems like it is related with the decomposition of the Bayer filter. I tried a different decomposition and it gets closer to the real RGB picture, but now the colours are much warmer than in the original picture.
def extract_bayer_channels(raw):
ch_R = raw[0::2, 1::2]
ch_Gr = raw[0::2, 0::2]
ch_B = raw[1::2, 0::2]
ch_Gb = raw[1::2, 1::2]
bayer = np.dstack((ch_B, ch_Gb, ch_R, ch_Gr))
return bayer
For reference, this is the original picture:
from pynet-pytorch.
I have just realized that I was using a different dataset, S7 ISP. That is why I got different odd image colours.
I have also realized that this is caused by different camera white balance settings. If I use the daylight white balance to convert the RAW image from S7 ISP instead of the camera, I also get RGB images with warmer tones.
from pynet-pytorch.
Related Issues (20)
- Tensor size mismatch when testing on own png HOT 5
- About the preprocess of the dataset alignment HOT 3
- Problems when unzip the dataset HOT 1
- Is there any result comparsion with the AIM2019 RAW2RGB TOP1(MOS) solution? HOT 1
- can't download model from google drive HOT 2
- Training problem HOT 3
- Model
- Weight input mismatch HOT 1
- A comparsion with the AIM2020 Image Signal Processing Challenge HOT 2
- How to convert raw images to Visualized RAW Images like yours paper examples HOT 1
- The dataset is different compared with tensorflow version
- Training Bokeh Problem
- Tensorflow vs Pytorch Activation Functions
- extract_bayer_channels HOT 1
- Can not download the Zurich RAW to RGB dataset HOT 2
- Cannot download the pretrain model HOT 2
- data preprocessing code of Zurich RAW to RGB dataset
- How to get visualized image?
- [Request] data preprocessing code for RAW andd RGB alignment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynet-pytorch.