GithubHelp home page GithubHelp logo

pysiddtools's Introduction

PySIDDTools

SIDD数据集工具集

简介

TODO

使用方法

  • 实例化SIDD对象
BASE_DIR = "<Path to SIDD Full Dataset>"
sidd = SIDD(BASE_DIR)
  • 获取SceneInstance个数
len(sidd)
  • 获取SceneInstance

使用index获取

sidd[0]
  • 筛选SceneInstance

更多筛选条件见sidd.py代码

s6_visible_L = sidd.filter(visible=True, smartphone="S6", luminance="L")
  • 读取raw图像
gt_0 = s6_visible_L[0].gt_raw(0)
gt_0_bggr = s6_visible_L[0].gt_raw(0, pattern="BGGR")

noisy_0 = s6_visible_L[0].noisy_raw(0)
noisy_0_rggb = s6_visible_L[0].noisy_raw(0, pattern="RGGB")
noisy_0_channels = s6_visible_L[0].noisy_raw(0, pattern="RGGB", split_channel=True)
  • 读取rbg图像
gt_0 = s6_visible_L[0].gt_srgb(0)
noisy_0 = s6_visible_L[0].noisy_srgb(0)

pysiddtools's People

Contributors

cnstark avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pysiddtools's Issues

gt_raw和gt_srgb的shape问题

您好,我在运行的时候发现如果raw图像的Orientation为1的话,gt_raw读出来的大小是W H,而gt_srgb读出来的大小是 3 H W,这是正常的吗?如果要训练的话,简单的调换gt_raw的行列就行了吧?感谢!

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.