coastalimagelib/argusIO.py
def deBayerRawFrameOpenCVForColor(self):
        '''
        deBayers a raw frame utilizing the package opencv
        
        Use this function for debayering into an RGB image output
        
        '''

        im = np.zeros(np.shape(self.raw), dtype='uint8')

        imR = np.zeros(np.shape(self.raw), dtype='uint8')
        imB = np.zeros(np.shape(self.raw), dtype='uint8')
        imG = np.zeros(np.shape(self.raw), dtype='uint8')

        for ib in range(self.nFrames):

            print('DeBayering frame {}'.format(ib))
            frame = self.raw[:, :, ib]
            framecopy = np.uint8(frame)
            rgbArray = cv2.cvtColor(framecopy, cv2.COLOR_BayerGB2BGR)

            imR[:, :, ib] = rgbArray[:, :, 2]
            imB[:, :, ib] = rgbArray[:, :, 0]
            imG[:, :, ib] = rgbArray[:, :, 1]
        
            self.imR = imR
            self.imG = imG
            self.imB = imB

        deBayers a raw frame utilizing the package opencv
        
        Use this function for debayering into an RGB image output
        
        
deBayers a raw frame utilizing the package opencv
Use this function for debayering into an RGB image output
deBayers a raw frame utilizing the package opencv Use this function for debayering into an RGB image output
def deBayerRawFrameOpenCVForColor(self):
        im = np.zeros(np.shape(self.raw), dtype='uint8')
        imR = np.zeros(np.shape(self.raw), dtype='uint8')
        imB = np.zeros(np.shape(self.raw), dtype='uint8')
        imG = np.zeros(np.shape(self.raw), dtype='uint8')
        for ib in range(self.nFrames):
            print('DeBayering frame {}'.format(ib))
            frame = self.raw[:, :, ib]
            framecopy = np.uint8(frame)
            rgbArray = cv2.cvtColor(framecopy, cv2.COLOR_BayerGB2BGR)
            imR[:, :, ib] = rgbArray[:, :, 2]
            imB[:, :, ib] = rgbArray[:, :, 0]
            imG[:, :, ib] = rgbArray[:, :, 1]
            self.imR = imR
            self.imG = imG
            self.imB = imB
def deBayerRawFrameOpenCVForColor ( self ) : im = np . zeros ( np . shape ( self . raw ) , dtype = 'uint8' ) imR = np . zeros ( np . shape ( self . raw ) , dtype = 'uint8' ) imB = np . zeros ( np . shape ( self . raw ) , dtype = 'uint8' ) imG = np . zeros ( np . shape ( self . raw ) , dtype = 'uint8' ) for ib in range ( self . nFrames ) : print ( 'DeBayering frame {}' . format ( ib ) ) frame = self . raw [ : , : , ib ] framecopy = np . uint8 ( frame ) rgbArray = cv2 . cvtColor ( framecopy , cv2 . COLOR_BayerGB2BGR ) imR [ : , : , ib ] = rgbArray [ : , : , 2 ] imB [ : , : , ib ] = rgbArray [ : , : , 0 ] imG [ : , : , ib ] = rgbArray [ : , : , 1 ] self . imR = imR self . imG = imG self . imB = imB
deBayers a raw frame utilizing the package opencv
Use this function for debayering into an RGB image output
deBayers a raw frame utilizing the package opencv Use this function for debayering into an RGB image output
'''
        deBayers a raw frame utilizing the package opencv
        
        Use this function for debayering into an RGB image output
        
        '''
self