필터 지우기
필터 지우기

How to convert the images (green, blue and black background ) that to be look similar to H&E images.

조회 수: 1 (최근 30일)
Hi everyone,
I have an image with two different color green and blue with the black background and I want to convert it to be similar than H&E images, as we can see in the attached file.
could any of you guys help me, please.

답변 (1개)

Peyman Ghasemi
Peyman Ghasemi 2017년 10월 5일
편집: Peyman Ghasemi 2017년 10월 5일
Hi Saleh;
I think you can test this simple way:
calculate the histogram of your two sample images for each RGB channel. then calculate the ratio of histograms of each image: ratio = imhist(im2) ./ imhist(im1) %DO THIS FOR EACH RGB CHANNEL
Now you have ratio that able to convert intensities in each color of each image. So multiply the ratio to the input image and get the output histogram. (OutputHistogram = imhist(InputImage) .* ratio). Then use histeq(InputImage , OutputHistogram) to change the input image to the desired colors.
I haven't tested this way, but I think it can be useful.
Bests, Peyman

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by