summaryrefslogtreecommitdiff
path: root/125/DEPENDENCIES/rgb2ycbcr_1.sci
diff options
context:
space:
mode:
Diffstat (limited to '125/DEPENDENCIES/rgb2ycbcr_1.sci')
-rwxr-xr-x125/DEPENDENCIES/rgb2ycbcr_1.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/125/DEPENDENCIES/rgb2ycbcr_1.sci b/125/DEPENDENCIES/rgb2ycbcr_1.sci
new file mode 100755
index 000000000..19f37604d
--- /dev/null
+++ b/125/DEPENDENCIES/rgb2ycbcr_1.sci
@@ -0,0 +1,11 @@
+function [ycc] = rgb2ycbcr_1(rgb)
+ //rgb=im2double(rgb);
+ rgb = double(rgb)
+ tmp=int_cvtcolor(rgb, 'rgb2ycrcb');
+ ycc=zeros(tmp);
+
+ ycc(:,:,1) = tmp(:,:,1);
+ ycc(:,:,2) = tmp(:,:,3);
+ ycc(:,:,3) = tmp(:,:,2);
+ clear tmp;
+endfunction \ No newline at end of file