Questions tagged [rawimage]

43 questions
1
vote
2 answers

UNITY: How to get the width of the line in pixels?

I am working on a project where you have to draw anything using a LineRenderer Component and then I process your drawing using the positions of the Line. To get the positions is pretty simple, but I need to know which width of the line you choose in…
Jasper Howard
  • 167
  • 1
  • 7
1
vote
1 answer

Converting raw images without headers

I have very large (20000x20000+) raw image files where each pixel is represented by 3 bytes. I know the resolution of each image. Example (for a 4x4 image): +----------------+----------------+----------------+----------------+ | | …
LostXOR
  • 197
  • 13
1
vote
0 answers

Retrieve data from raw image taken with camera2API

I have used the official sample for using the Camera2 API to capture a RAW sensor frame. The code is in java but I transformed it to Kotlin with the help of Android Studio. I tested it, and I'm capable of taking and saving a dng picture to my phone.…
NicoC
  • 151
  • 1
  • 11
1
vote
2 answers

Taking a dng picture using the Camera2 API

I'm creating an app that takes pictures in .dng format in order to process them. I'm using the camera2 API. I was able to take pictures and save them into my phone, but in .jpg format. But when I change my code in order to save them with .dng…
NicoC
  • 151
  • 1
  • 11
1
vote
3 answers

imagemagick RAW file identify/convert - no such file or directory (tmp file)

I'm trying to use imagemagick-7 (CLI) on ubuntu to identify and convert RAW images to PNG format. I am using the dcraw binary as the delegate for identifying and converting raw images. I updated the dng:decode delegate in delegates.xml as…
corecase
  • 1,278
  • 5
  • 18
  • 29
1
vote
2 answers

JPEG-Decompression on RAW image in python

When I try to JPEG-Decompress (old-style JPEG compression, not JPEG-LS and not JPEG2000) the RAW data, I get following error: Traceback (most recent call last): File "raw-reader.py", line 766, in raw_image_data =…
Ian Rehwinkel
  • 2,486
  • 5
  • 22
  • 56
1
vote
1 answer

display .raw file image in browser

I have a image file in .raw format which is directly read from fingerprint scanner device. We have to display that in a browser using html and javascript. How can we convert the .raw image and display in the browser? Following is the manual steps I…
CrazyProgrammer
  • 544
  • 8
  • 29
1
vote
1 answer

Loading and saving to file an image from a raw data memory structure in c++

I have a piece of code that retrieves images from a camera and store them in a structure. The structure provides the pointer to the first pixel of the image as well as the image dimension, its width and height. My question is: how can I save the…
Gab
  • 11
  • 2
1
vote
0 answers

OPENCV How can I read and use Bayer filter on a NEF image?

I'm currently using opencv C++ to process images that have file type NEF. But imread doesn't seem to work on raw images. Does anyone know how to read and use Bayer filter on a NEF type image? Thanks! http://www.mannyphoto.com/D700D3/ here are some…
4Dmovie
  • 33
  • 5
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
1 answer

Error taking and saving .dng picture using the Camera2 API

I'm creating an app that takes pictures in .dng format in order to process them. I'm using the camera2 API. I was able to take pictures and save them into my smartphone Android 13, but in .jpg format. But when I change my code in order to save them…
Marinette
  • 1
  • 1
0
votes
1 answer

Can't assign Texture2D to RawImage in Unity (C#) - NullReferenceException

I'm using API calls in Unity to get an image (from the Google Street View API). I do not want to render the image immediately, rather store it in a folder. I've gone through and tried out many different code examples, but keep getting stuck on the…
0
votes
0 answers

Hiding raw image destroys it - how to fix it?

I wanted to use pop-up type of notification in my project. It was supposed to be hidden on the start, but show up when button is clicked. So at first I tried .SetActive(bool) method, then .enabled = bool. Both times it turned out to delete/destroy…
0
votes
0 answers

Hough transform implementation using C using 2D raw image

I'm trying to implement Hough algorithm using C programming language and 2D raw image. I have written the code in order to get separate output image for edge detection and Hough transform. When I do edge detection only I'm getting the proper edge…
0
votes
0 answers

How to read a 16-bit unsigned integer big endian binary file in Python

I need to read a 16-bit unsigned integer big endian binary file in Python. Here's some information that may be relevant: No. of Dimensions: 3 Dimension Size: 64 x 384 x 384 Max Dimension Size: 64 x 384 x 384 Data type: 16-bit unsigned…