JunoCam – RGB channel merged.

The following picture shows the result of merge 16 sequencial frames

merged_frame

%
% This script show how to load a .IMG raw data file and merge the color channel 
% in order to get a real color image.
%
% javierluiso@gmail.com
% 2016.06.28

function Example_merge_frames()

% The PDS Header is parsed
pds_header = readPDSHeader('JNCE_2013282_00C102_V01.LBL');

% The IMG file is loaded.
raw_data = loadIMGfile(pds_header);
[R, G, B] = separateRGBframelets(raw_data');
[RGBFrames] = buildRGBFrames(R,G,B);

% Get dimenson for further use
[rows, cols, colors, total_frame] = size(RGBFrames);


TOTAL_FRAMES = 16;
frames = zeros(rows,cols, colors, TOTAL_FRAMES); 

for f=1:TOTAL_FRAMES
 frames(:,:,:,f) = RGBFrames(:,:,:,f)./255;
endfor

merged_frame = mergeChannels(frames, 115);
figure();
imshow(merged_frame);
title("Result of the merge process applide to N sequencial frames\n 115 pixel overlaping");

imwrite(merged_frame, "merged_frame.png");

endfunction;

 

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s