choiseungmi

PPT update & histogram file update

......@@ -8,14 +8,14 @@ qp=QP{1};
resolution = resolution{1};
numFrame = 100;
Base_path="C:\Users\user\Documents\KHU\Cap\compressai\examples\\"+seq+"\\";
Base_path="C:\Users\user\Documents\KHU\compressai\examples\\"+seq+"\\";
Target_folder =Base_path+"recon\\";
Save_folder = Base_path+"rgb\\";
%---- setting ----
for frame = 1:numFrame
% targetFileName = Target_folder +"recon"+(frame-1)+"_q"+qp+".png";
targetFileName = Target_folder +"v1_recon"+(frame-1)+"_q"+qp+".png";
targetFileName = Target_folder +"recon"+(frame-1)+"_q"+qp+".png";
RGB = imread(targetFileName);
[height, width, color] = size(RGB);
R = RGB(:,:,1);
......@@ -38,7 +38,7 @@ end
size = 768 * 768 * 3;
% saveFileName = "C:\Users\user\Documents\KHU\Cap\compressai\examples\recon\\"+"recon"+"_q"+qp+ ".rgb";
saveFileName = "C:\Users\user\Documents\KHU\Cap\compressai\examples\recon\\"+"v1_recon"+"_q"+qp+ ".rgb";
saveFileName = "C:\Users\user\Documents\KHU\compressai\examples\recon\\"+seq+"_recon"+"_q"+qp+ ".rgb";
fout = fopen(saveFileName,'w');
for frame = 1:numFrame
targetFileName = Save_folder +"recon"+(frame-1)+".rgb";
......
clear all;
sequence=["CrowdRun","DucksTakeOff","OldTownCross","ParkJoy","ArenaOfValor","GlassHalf"];
resolution = {'2K','4K'};
QP=["1","2","3","4","5" ,"6"];
seq = sequence{2};
qp=QP{1};
resolution = resolution{1};
numFrame = 100;
frame=24;
x=768;
y=768;
Base_path="C:\Users\user\Documents\KHU\compressai\examples\\"+seq+"\\";
Target_folder =Base_path+"recon\\";
Source_File = Base_path + seq+"_768x768_"+numFrame/2+"_8bit_444_frame"+(frame-1)+".png";
Target_File = Target_folder +"recon"+(frame-1)+"_q"+qp+".png";
%-----------setting------------
image = imread(Source_File);
Generate = imread(Target_File);
Generate = int32(Generate);
image = int32(image);
Error = Generate - image;
h = histogram(Error);
% %%%
% figure;
% histogram2(Error,image,'DisplayStyle','tile')
% set(gca,'ColorScale','log')
% set(gca,'Colormap',bone)
%
%
% figure;
% histogram2(Error,image, 'DisplayStyle','bar3')
% set(gca,'ColorScale','log')
% set(gca,'Colormap',bone)
% zlim([0,limt])
% view(-10,35);
clear all;
sequence=["CrowdRun","DucksTakeOff","OldTownCross","ParkJoy","ArenaOfValor","GlassHalf"];
resolution = {'2K','4K'};
QP=["1","2","3","4","5" ,"6"];
seq = sequence{6};
qp=QP{1};
resolution = resolution{1};
numFrame = 48;
frame=48;
x=768;
y=768;
Base_path="C:\Users\user\Documents\KHU\compressai\examples\\"+seq+"\\";
Target_folder =Base_path+"recon\\";
Source_File = Base_path + seq+"_768x768_"+numFrame/2+"_8bit_444_frame"+(frame-1)+".png";
Target_File = Target_folder +"recon"+(frame-1)+"_q"+qp+".png";
%-----------setting------------
image = imread(Source_File);
Generate = imread(Target_File);
Generate = int32(Generate);
image = int32(image);
Error = Generate - image;
h = histogram(Error);
xlim([-150,150])
ylim([0,90000])
% %%%
% figure;
% histogram2(Error,image,'DisplayStyle','tile')
% set(gca,'ColorScale','log')
% set(gca,'Colormap',bone)
%
%
% figure;
% histogram2(Error,image, 'DisplayStyle','bar3')
% set(gca,'ColorScale','log')
% set(gca,'Colormap',bone)
% zlim([0,limt])
% view(-10,35);
clear all;
sequence=["CrowdRun","DucksTakeOff","OldTownCross","ParkJoy","ArenaOfValor","GlassHalf"];
resolution = {'2K','4K'};
QP=["1","2","3","4","5" ,"6"];
seq = sequence{6};
qp=QP{1};
resolution = resolution{1};
numFrame = 48;
frame=24;
Base_path="C:\Users\user\Documents\KHU\compressai\examples\\"+seq+"\\";
Target_folder =Base_path+"recon\\";
Source_File = Base_path + "GlassHalf_768x768_24_8bit_444_frame"+(frame-1)+".png";
Target_File = Target_folder +"recon"+(frame-1)+"_q"+qp+".png";
%-----------setting------------
image = imread(Source_File);
Generate = imread(Target_File);
Generate = int32(Generate);
image = int32(image);
Error = Generate - image;
figure;
histogram2(Error,image,'DisplayStyle','tile')
set(gca,'ColorScale','log')
set(gca,'Colormap',bone)
figure;
histogram2(Error,image, 'DisplayStyle','bar3')
set(gca,'ColorScale','log')
set(gca,'Colormap',bone)
zlim([0,limt])
view(-10,35);
This file is too large to display.