matlab octave ベクトルを行列に reshape

Sz = size (rgb);
...
hsval = [h, s, v];

## If input was an image, convert it back into one.
if (is_image)
hsval = reshape (hsval, Sz);
endif