|
|
Convert a grayscale pixel to a rgb value
Hi all! :)
In an image X, I have a grayscale pixel which has only 1 value: 200. I also know it's coordinate: (124,32)
I have a rgb value: [0, 220, 255] with a variable name called Seed.
I want to replace the grayscale pixel with this rgb value. And I tried using this:
X(32,124)= Seed;
I have this error:
Assignment has more non-singleton rhs dimensions than non-singleton
subscripts.
I understand it's because I'm trying to write a matrix of 3 values into a space of 1. But how do I solve this error then?
Will be so grateful if you guys can help me. :) Thank you!
|
|
0
|
|
|
|
Reply
|
Shamane
|
1/22/2010 9:24:05 AM |
|
Make up your mapping of gray levels to color in an N by 3 matrix (the
"colormap") and then call ind2rgb().
|
|
0
|
|
|
|
Reply
|
ImageAnalyst
|
1/22/2010 11:20:38 AM
|
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <2cb16122-81ff-4ff8-a94f-65323b463277@b9g2000yqd.googlegroups.com>...
> Make up your mapping of gray levels to color in an N by 3 matrix (the
> "colormap") and then call ind2rgb().
I apologise, I don't really get what you mean. Do you mean to say, convert my grayscale image to one with a colormap? However, I only want to change a particular grayscale pixel to a rgb pixel. The rest of the grayscale pixels still remain as it is.
|
|
0
|
|
|
|
Reply
|
Shamane
|
1/25/2010 7:12:03 AM
|
|
|
2 Replies
2501 Views
(page loaded in 0.039 seconds)
Similiar Articles: Convert a grayscale pixel to a rgb value - comp.soft-sys.matlab ...Hi all! :) In an image X, I have a grayscale pixel which has only 1 value: 200. I also know it's coordinate: (124,32) I have a rgb value: [0, 220,... Change the pixel value - comp.soft-sys.matlabConvert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... Change the pixel value - comp.soft-sys.matlab Convert a grayscale pixel to a rgb value - comp.soft-sys ... RGB to gray scale to RGB - comp.soft-sys.matlabConvert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... Hi all! :) In an image X, I have a grayscale pixel which has only 1 value: 200. rgb to grayscale using jet colormap intensity - comp.soft-sys ...Convert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... If it's RGB, then you cannot use colormap(). Once you convert to grayscale, you have the *ability ... Normalizing grayscale image - comp.soft-sys.matlabConvert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... Normalizing grayscale image - comp.soft-sys.matlab Convert a grayscale pixel to a rgb value - comp.soft ... Find Color/Pixel in RGB BMP - comp.soft-sys.matlabConvert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... However, I only want to change a particular grayscale pixel to a rgb pixel. ... get the value from ... convert RGB to JPEG in buffer - comp.compressionConvert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... convert RGB to JPEG in buffer - comp.compression Convert a grayscale pixel to a rgb value - comp.soft ... convert image DN to unique values - comp.lang.idl-pvwave ...Convert a grayscale pixel to a rgb value - comp.soft-sys.matlab ...:) In an image X, I have a grayscale pixel which has only 1 value: 200. I also know it's ... saving ... Grayscale Presentation State and RGB data - comp.protocols.dicom ...Convert a grayscale pixel to a rgb value - comp.soft-sys.matlab ... Grayscale Presentation State and RGB data - comp.protocols.dicom ... Convert a grayscale pixel to a rgb ... the difference between saving grayscale and RGB image in JPEG ...... from 'A2', I can see from the result that their pixel's values are far ... comp.compression ... the difference between saving grayscale and RGB image in JPEG ... convert RGB ... Convert a grayscale pixel to a rgb value - comp.soft-sys.matlab ...Hi all! :) In an image X, I have a grayscale pixel which has only 1 value: 200. I also know it's coordinate: (124,32) I have a rgb value: [0, 220,... Grayscale - Wikipedia, the free encyclopedia... grayscale or greyscale digital image is an image in which the value of each pixel is a single ... To convert any color to a grayscale ... encode grayscale intensity in RGB ... 7/22/2012 11:50:17 AM
|
|
|
|
|
|
|
|
|