Questions tagged [rawimage]
43 questions
                    
                    12
                    
            votes
                
                5 answers
            
        AttributeError: module 'scipy.misc' has no attribute 'toimage'
While executing the below code:
scipy.misc.toimage(output * 255, high=255, low=0, cmin=0, cmax=255).save(
    params.result_dir + 'final/%5d_00_%d_out.png' % (test_id, ratio))
I get the below error:
AttributeError: module 'scipy.misc' has no…
        
        KCK
        
- 2,015
 - 2
 - 17
 - 35
 
                    3
                    
            votes
                
                1 answer
            
        Extract a bitmap from a PostScript (CIP3) file
I've asked a similar question some months ago, on the following link:
Creating a code to decompress byte-oriented RLE image
And I've also read this question (was closer to mine):
Extract a bitmap from PostScript
I am dealing with CIP3 files, which…
        
        paboobhzx
        
- 109
 - 10
 
                    3
                    
            votes
                
                1 answer
            
        How convert UI RawImage into byte array
I am trying to convert a RawImage in a array bytes (bytes[]) but the RawImage don't have a encondePNG or something else to get a bytes for a RawImage, any idea how I can get the array of bytes?   
public class RegistryScreen : UIScreen
{
Texture2D…
        user10466598
                    3
                    
            votes
                
                2 answers
            
        Saving an android camera2 image to lossless PNG
I'm trying to save android.hardware.camera2 images to a lossless format.
I've got it working for JPEG (lossy) and DMG (raw, but huge and hard to work with) using scrounged bits of code:
private fun save(image: Image, captureResult:…
        
        Benjamin H
        
- 5,164
 - 6
 - 34
 - 42
 
                    3
                    
            votes
                
                2 answers
            
        __availableRawPhotoPixelFormatTypes is empty on iPhone 7+ and iOS11
I'm trying to capture RAW files with AVFoundation. However I'm getting empty array in __availableRawPhotoPixelFormatTypes
Here is my snippet
if self._photoOutput == nil {
    self._photoOutput = AVCapturePhotoOutput()
   …
        
        s1ddok
        
- 4,615
 - 1
 - 18
 - 31
 
                    3
                    
            votes
                
                1 answer
            
        Preserve Aspect, but with crop center
I have a GameObject with RawImage component displaying an Image using Texture.
The image is squeezed to the size of the object and changing it's original ratio.
How can I tell the image in the texture to CropCenter? (like in Android for example) 
        
        David
        
- 37,109
 - 32
 - 120
 - 141
 
                    2
                    
            votes
                
                1 answer
            
        How to convert 16bit raw data into png image to show in browser?
I have 16 bit raw data as base64 string. Want to convert that into png image, based on depth 8,16,24.
// code to process 16bit buffer array
function process16bitBitmap(buffer, options = {}) {
const view = new Uint8ClampedArray(buffer);
const out =…
        
        Mohd. Shariq
        
- 214
 - 3
 - 14
 
                    2
                    
            votes
                
                0 answers
            
        Demosaicing an RCCB color filter array
I am looking for techniques that allow me to demosaic an RCCB CFA. 
I came across this paper on SPIE "Color image acquisition method using color filter arrays occupying overlapped color spaces" that gives a good technique to  convert to interpolate…
        
        Dinesh Iyer
        
- 681
 - 3
 - 11
 
                    2
                    
            votes
                
                1 answer
            
        How to capture frames from the Unity3d camera and display them on another rawImage in real time?
I want to capture frames from Unity3d virtual camera and then let them displayed on another raw image.The result is that the raw image screen flickers very much.
using UnityEngine;
using UnityEngine.UI;
public class RawImageVirtualWebCamTexture :…
        
        Harlan Chen
        
- 321
 - 5
 - 20
 
                    2
                    
            votes
                
                1 answer
            
        How can display a Digital Elevation Model (DEM) (.raw) using Python?
I want to display a DEM file (.raw) using Python, but there may be something wrong with the result.
Below is my code:
img1 = open('DEM.raw', 'rb')
rows = 4096
cols = 4096
f1 = np.fromfile(img1, dtype = np.uint8, count = rows * cols)
image1 =…
        
        LA Tran
        
- 25
 - 5
 
                    1
                    
            vote
                
                1 answer
            
        How to read a RAW image file format into OpenCV without any loss of resolution?
I am trying to import a Nikon '.NEF' file into OpenCV. '.NEF' is the file extension for a RAW file format for pictures captured by Nikon cameras. When I open the file in Preview on a Mac, I see that the resolution is 6000 by 4000, and the picture is…
        
        ganeshravisankar
        
- 35
 - 5
 
                    1
                    
            vote
                
                1 answer
            
        Demosaicing/Coloring a bayer bggr image with openCV
I am working with a custom USB camera which sends raw Bayer BGGR 16 bit/pixel images. I have a C++ project which is able to show the camera stream in grayscale, but when I try to use any of the OpenCV's built in color conversion function I always…
        
        LB91
        
- 21
 - 6
 
                    1
                    
            vote
                
                1 answer
            
        How to get correct Laplacian sharpened .raw image?
I am trying to do Laplacian sharpening on the moon image with using this algorithm :
I am converting this image:
But I don't know why I am getting image like this:
Here is my code:
import numpy as np
def readRawFile(name,row_size,column_size):
 …
        
        KRUTARTH DAVE
        
- 21
 - 5
 
                    1
                    
            vote
                
                0 answers
            
        Unity3D Big Memory Spike when a png is downloaded through unitywebrequest
In profiler both device and editor - base line shifted by a diff of 27mb, but image downloaded is of size 700kb and is placed into a RawImage of size 300x300 and format RGB32.
Any idea why there is such a big change in memory?
Here is the code…
        
        aderw
        
- 41
 - 4
 
                    1
                    
            vote
                
                1 answer
            
        Unity3d How to find RawImage with name in code
texture = tex;
GameObject.Find("Aciklama1L1").transform.GetChild(0).GetComponent().texture = tex;
I want change RawImage texture but it's not work.
 
        
        Aşkın TEMEL
        
- 51
 - 1
 - 1
 - 6