How to do colour clustering on a PNG image with a transparent background?

조회 수: 1 (최근 30일)
Salad Box
Salad Box 2021년 3월 14일
편집: Salad Box 2021년 3월 14일
Hi,
I have a sample PNG image the background of which has been removed. See below ( well it shows the white background here but please imagine the background is clear not white).
However when I display the image in Matlab using 'imshow' I get the image below (not surprisingly) on a black background.
My main goal is to do colour clustering on the image with the transparent background.
Now sadly for the image with the black background, the main 5 colours I extract out of the image are below with ( no surprisingly ) black being the most dominant colour. ( See below).
That is not I want.
I would like to do colour clustering on the image with the transparent background.
How can I achieve that?
Please advise.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by