Problem with a function using rgb2ycbcr
1 view (last 30 days)
Show older comments
I am trying to do a function using rgb2ycbcr. It converts the image, then shows it up and saves it, but when I call the function, this error appears:
"Subscript indices must either be real positive integers or logicals."
Here's my code:
function x = rgb2yuv( x )
x = rgb2ycbcr(x)
imshow(x)
imwrite(x, 'C:\Users\aaaa\Documents\PDI\Atividade1\imagens\x_rgb2yuv.jpg', 'jpg')
end
What am I doing wrong?
0 Comments
Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!