I have worked in this conversion, but I am not getting from gray to rgb, so please can anybody suggest how to covert rgbtogray and graytorgb conversion in color images using matlab?
original = imread('koala.jpg'); %read in original RGB image
gray = rgb2gray(original); %convert to grayscale
imwrite(gray,'gray.jpg'); %write to new image
backtorgb = cat(3,gray,gray,gray); %convert to RGB format without color
imwrite(backtorgb,'backtorgb.jpg'); %write to new image
Hello Jeffrey,
Thank You Very much
Try doing this
gray = rgb2gray(original,[]); // to avoid any saturation issues
Hello Everyone, do you have any knowledge on Perception? Can you please provide the details regarding this? I am actually working with color image processing and am unable to get the perception of...
08 September 2014 6,261 6 View
If you have any idea about Sub Pixel classification using fusion with contextual information obtained from a high-spatial resolution (panchromatic or color) image.
08 September 2014 3,367 0 View
06 July 2014 9,425 2 View
06 July 2014 7,186 4 View
Target green Marketing and ecological planning characteristics with GIS
04 May 2014 2,224 1 View
Please help me to work with computational science for satellite image analysis at mixed pixels, as I struck this problem.
04 May 2014 9,078 2 View
I am working with mixed pixel classification, so I am little bit confused in these two methods. So please any can give me the difference between these two
03 April 2014 3,602 1 View
When I tried to energy minimization my system, I got fatal error as below. Fatal error: Atomtype opls_116 not found Although I've already added this line: ; include water #include "oplsaa.ff/spc.itp" to [molecultype] directive in my topology.
16 June 2021 0 0 View
Hiiiii everyone! I have an enquiry on statistical analysis. I was looking for many forum and it's still cannot solve my problem. I want to compare means of two groups of data but only with two...
03 March 2021 8,796 3 View
I am on the lookout for the Enhanced Yellow Fluorescent Protein (Aequorea victoria) DNA sequence. Does anyone know where I can find it? Thank you in advance
03 March 2021 3,568 1 View
Hi, I want to start testing pitfall trap to obtain ants samples, but I need to conduct molecular analysis on those insects. So, what kind of fluid can I use? Ethanol expires too early and I need...
03 March 2021 5,978 5 View
I have selected brain tumor images ...but now found that already lots of research done n this topic.
03 March 2021 5,774 3 View
What's the best way to measure growth rates in House sparrow chicks from day 2 to day 10? Since, the growth curve from day 2 to 10 won't be like the "Logistic curve" it might not follow logistic...
03 March 2021 1,401 3 View
i am try to classify the x-ray images. During classification , can i block unwanted images (except x-ray image).
03 March 2021 7,100 1 View