Determine histogram of color image with separate red, green and blue component.
Hello;
there are some codes related to the subject on Matlab file exchange
You can go to Matlab help. Lots of codes and suggestions available.
Try imhistmatch( )
Read an image and pass it to the function imhist(img) it will return colors histogram
Attached is a Matlab code sequence for the restitution of histograms for RGB color image components.
I=imread(‘image.jpg');
ired=I(:,:,1); igreen=I(:,:,2); iblue=I(:,:,3);
figure, subplot(3,1,1), imhist(ired), subplot(3,1,2), imhist(igreen), subplot(3,1,3), imhist(iblue),
But these code show the histogram of red, green and blue component but in grayscale form, but I want red color histogram, similarity other color histogram
>>image = imread(‘My_image.jpg');
%%You should separate 3 layers of paint. "red , green and blue"
>>Red=image (:,:,1);
%% The third parameter represents one of the colors of red, green, and blue.
>>Green=image (:,:,2);
>>Blue=image (:,:,3);
>>figure,
>>subplot (3,1,1)
>> imhist (Red)
>>subplot (3,1,2)
>> imhist (Green),
>>subplot (3,1,3)
>>imhist (Blue)
and you can change histogram by "eqhist" that is a code and you can use it.
eqhist can help you to find the best diagram
Dear
This question and the answers will be helpful to you
https://www.mathworks.com/matlabcentral/answers/181624-how-to-get-color-histogram-of-an-image
first of all you need to know which kind of image you are working, if the image is a simple RGB you can use this code
image = imread('blabla.jpg')
red = image(:,:,1);
green = image(:,:,2);
blue = image(:,:,3);
where the red channel is the first one.
for the other hand if your image is multispectral you have to know which is the red channel (see the sensor properties) and
red = image(:,:,red channel);
and then you can use
figure(1)
imhist(red) or plot(red)
Using these software implement image encryption
03 April 2019 2,869 6 View
Since I want to develop an algorithm to shuffle an image using fuzzy logic.
01 February 2019 2,703 2 View
Read means access operation and write means update operation.
01 February 2019 5,342 2 View
31 December 2018 5,408 2 View
Since I want to implement image encryption using artificial neural network. How to do it, please inform me.
31 December 2018 7,097 5 View
I have been submitting an article to Else viewer journal, but the Else viewer (optics online journal) show a massage "Under Editor Evaluation". What is the meaning of this message? How many days...
31 December 2018 6,422 3 View
Since the cellular automation is used to implement image encyption
31 December 2018 3,688 1 View
Is it possible to add cryptography concept in cloud computing ? If possible how to do that ?
31 December 2018 4,804 6 View
Please share the code( if possible) for image compression using mat lab.
31 December 2018 6,077 5 View
Since these codes are required for statistical analysis of image encryption.
31 December 2018 5,168 1 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
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
Need to image mesoporous silica nanoparticles using the TEM. Also, need high resolution TEM images to see the mesoporous structure. Kindly suggest what kind of grids to use. Thanks, Shatadru
02 March 2021 1,787 2 View
Dear Colleagues, After running Western blot on PVDF membrane and detection using ECL, I would like to stain my PVDF with colloidal gold to be able to allign the ECL image with total proteins on...
02 March 2021 7,829 3 View
I would like to research on MR images (0.5T and 3T). Can you please suggest some websites that I can download dataset including both 0.5T and 3T MR images? Thank you.
02 March 2021 7,735 3 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
Hello, I have classified 10 S3 OLCI images from the same area (althouth not the same size and/or quadrant) and I would like to do a final image using the mode of the pixel of these 10 images. I...
01 March 2021 9,874 3 View
I have a set of stably transfected cell lines all transfected with plasmids containing GFP tags on the C terminus. During a western blot using anti-GFP antibody, one of my plasmids has dissociated...
01 March 2021 9,310 4 View
I'm a student and I have to produce a cell line with a knockin for the NRF2 gene with GFP. I have to put a promotor in front of the GFP because the gene will be too far away from the promotor of...
28 February 2021 7,127 2 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View