GithubHelp home page GithubHelp logo

convolutional-color-constancy's Introduction

convolutional-color-constancy

Jonathan T. Barron; Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015, pp. 379-387

convolutional-color-constancy's People

Contributors

soshink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hello-trouble

convolutional-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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.