Questions tagged [rawpy]

8 questions
2
votes
2 answers

Reading raw image files inside the map method of tensorflow using Rawpy

I am trying to load various raw (AWR) images inside a TF dataset for training a model. Basically, I initially had 2 lists: im1: This has the image file paths that will be input to the model. im2: This is the expected output. I am creating the…
rohan843
  • 109
  • 5
2
votes
1 answer

Image too big for processing when converting large (1.3 GB) DNG file to PNG using python

I need to convert a DNG file to PNG using python. I found a post here how to convert DNG: Opencv Python open dng format The code I tried: #open dng and convert import rawpy import imageio import os os.chdir(r'C:\Path\to\dir') path =…
Olaf
  • 146
  • 1
  • 8
1
vote
1 answer

Raw image processing with rawpy

I have raw image data (NEF-files) that I'm trying to process with rawpy. My current workflow is as follows: Bad Pixel fix Calculation of white balance and brightness with a ColorChecker Definition of rawpy Parameters Postprocessing image with…
Fred
  • 11
  • 1
1
vote
1 answer

Combination of RawPy and imageio result in red image

I want to do some image processing using .dng files. I am using rawpy to convert the file into a numpy array. Then imageio to save the image. It is a very simple code, given on the rawpy webpage. The resulting .png image is not as I expect it to be.…
Jop de Boo
  • 11
  • 1
0
votes
2 answers

Why does the size of raw_image equal the sensor size?

I would like to access the intensity of individual color pixels within the RGGB-Bayer pattern of my Sony camera. With the rawpy package it seems like I can obtain the raw_image, but it is a 2D-array of the shape (4024, 6048), which is the size of…
NablaDelta
  • 43
  • 5
0
votes
0 answers

Unable to read 12bit DNG with rawpy (alternatively: how to convert 12bit DNG to 16Geotiff while preserving the metadata)

I have a code for drone image calibration and aligning from Micasense which works with 16bit images (Tiff). Alternatively the author of the code uses rawpy to read 12bit Tiff images(link: https://github.com/micasense/imageprocessing/issues/78). My…
murph21
  • 1
  • 1
0
votes
1 answer

How to handle Dark Current Correction with rawpy

I'm trying to process a .NEF-file with rawpy. Before applying bad_pixel_fix_, white balance, etc. I want to subtract a dark-frame for the dark-current correction. I solve this by getting the ADU-values of the image with rawpy's raw_image-method and…
Fred
  • 11
  • 1
0
votes
1 answer

How do I read an image using Rawpy image processing library, from a URL?

How do I read an image using the rawpy library, from a url? I have tried filepath = www.google.com/image.jpeg im = rawpy.imread(filepath) but it doesn't work. I looked deeper into rawpy's code and it says it takes "path or file". I have also tried…
CoderMath
  • 25
  • 1
  • 5