?? demo.m
字號:
%This package contains two scripts to run colour grading as described in
%
%[Pitie07] Automated colour grading using colour distribution transfer.
% F. Pitie , A. Kokaram and R. Dahyot (2007)
% Computer Vision and Image Understanding.
%[Pitie05] N-Dimensional Probability Density Function Transfer and its
% Application to Colour Transfer. F. Pitie , A. Kokaram and
% R. Dahyot (2005) In International Conference on Computer Vision
% (ICCV'05). Beijing, October.
%
% The grain reducer technique is not provided here.
%
% Note that both pictures are copyrighted.
%
% send an email to fpitie@mee.tcd.ie if you want more information
fprintf('load images\n');
I0 = double(imread('scotland_house.jpg'))/255;
I1 = double(imread('scotland_plain.jpg'))/255;
fprintf('Colour Transfer (with a slow implementation) \n ');
IR = colour_transfer_IDT(I0,I1,20);
figure;
subplot(2,2,1); imshow(I0); title('Original Image'); axis off
subplot(2,2,2); imshow(I1); title('Target Palette'); axis off
subplot(2,2,4); imshow(IR); title('Result After Colour Transfer'); axis off
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -