Jonathan T. Barron; Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015, pp. 379-387
convolutional-color-constancy's Introduction
convolutional-color-constancy's People
Forkers
hello-troubleconvolutional-color-constancy's Issues
How to process the PNG16 files in Cube++ dataset?
Hi, thanks for sharing your implementation. I have a few of problems about the usage of the Cube++ dataset
.
The PNG
files provided in Cube++ are in 16-bits format. It seems that these images cannot be read correctly using cv::imread
. I tried to use cv2.imread(img_name, cv2.IMREAD_UNCHANGED)
, but the images are still too dark.
Would you please share some details about the procesing the PNG16 files?
Thanks for your reading. I will be appreciated for your reply!
def __getitem__(self, idx):
img_name = self.data_samples[idx]
img = cv2.imread(str(img_name))
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB).astype(np.float64)
if self.return_gt_rgb:
if self.augmentations is None:
return img, np.array(self.gt_csv[img_name.stem])
else:
return self.augmentations(img), np.array(self.gt_csv[img_name.stem])
if self.augmentations is None:
return img, rgb2uvy([self.gt_csv[img_name.stem]])[0, :2]
else:
return self.augmentations(img), rgb2uvy([self.gt_csv[img_name.stem]])[0, :2]
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.