Wikia

Psychology Wiki

Barns grand tetons HSV separation.jpg

Talk0
34,135pages on
this wiki
Full resolution(800 × 2,392 pixels, file size: 358 KB, MIME type: image/jpeg)
Description

This takes an image ( Note that the H element is the only one displaying colour. Compare the dark on the left side of the barn roof and the white of the snow; in both cases these have colour, but the saturation is very low, causing them to be near-greyscale; the intensity of the barn is much lower than the snow. The green of the grass is highly saturated and of moderate intensity; the blue of the mountains is consistent in colour but varies in intensity and saturation; and the sky has constant colour and intensity but varying saturation.

Generator code

In

RGBimage = imread('barns_grand_tetons_reduced.jpg');
[height,width,depth]=size(RGBimage);
HSVimage=rgb2hsv(RGBimage);

% Caution: MATLAB's hsv2rgb routine is very memory-hungry. I had to halve
% the size of the source image to avoid running out or memory (even with
% a lot of swap space allocated).

% Newer versions of matlab need outputimage=zeros(height*4,width,depth,'double');
outputimage=double(zeros(height*4,width,depth));
for w=1:width,
  for h=1:height,
    outputimage(h,w,1) = HSVimage(h,w,1); %Copy H, S and V for normal image
    outputimage(h,w,2) = HSVimage(h,w,2);
    outputimage(h,w,3) = HSVimage(h,w,3);
    outputimage(h+height,w,1) = HSVimage(h,w,1); %Copy H only for first component
    outputimage(h+height,w,2) = 1;
    outputimage(h+height,w,3) = 1;
    outputimage(h+(2*height),w,2) = HSVimage(h,w,2); %S only for second component
    outputimage(h+(2*height),w,1) = 1;
    outputimage(h+(2*height),w,3) = 1;
    outputimage(h+(3*height),w,3) = HSVimage(h,w,3); %V only for third component
    outputimage(h+(3*height),w,1) = 1;
    outputimage(h+(3*height),w,2) = 1;
  end
end

im2=hsv2rgb(outputimage);
image(im2);
imwrite(im2,'HSV_separation.jpg','jpeg');

Based on the (public domain) photo

Source

Originally from en.wikipedia; description page is/was here.

Date 2006-06-02 (original upload date)
Author Original uploader was
Permission

NORIGHTSRESERVED.



License information Edit

Green copyright The copyright holder of this work allows anyone to use it for any purpose including unrestricted redistribution, commercial use, and modification.

Note:
If the image requires attribution, use {{Attribution}} instead
If this is your own work, please consider using {{PD-self}} instead.



Original upload log Edit

(All user names refer to en.wikipedia)

  • 2006-06-02 17:47
This page uses content from the Wikimedia Commons. The original content was at File:Barns grand tetons HSV separation.jpg. The list of authors can be seen in the page history. As with this Psychology Wiki wiki, that portion of the content of Wikimedia Commons is available under the GNU Free Documentation License.

Appears on these pages
of

  • HSL and HSV

    Assessment | Biopsychology | Comparative | Cognitive | Developmental | Language | Individual...

  • HSV color space

    Assessment | Biopsychology | Comparative | Cognitive | Developmental | Language | Individual...

See full list >

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:02, November 5, 2007Thumbnail for version as of 13:02, November 5, 2007800 × 2,392 (358 KB)PhloxBot (Talk | contribs){{Media-info |Description=This takes an image ( Note that the H element is the only one displaying colour. Compare the dark on the left side of the barn roof and the white of the snow; in both cases these have colour, but the saturation is very low, causi

Around Wikia's network

Random Wiki