How do I cut the black baground from this image?

1 回表示 (過去 30 日間)
Arthur Pereira
Arthur Pereira 2018 年 5 月 17 日
編集済み: Florian Morsch 2018 年 5 月 18 日
Hello, I have passed a mask in a image but i want to remove the back blackground, I want to remove all the black pixels. How should I do this?
  2 件のコメント
Florian Morsch
Florian Morsch 2018 年 5 月 17 日
What do you mean by remove it? Do you want it white or do you want nothing at all?
Arthur Pereira
Arthur Pereira 2018 年 5 月 17 日
I want nothing at all. Is that possible?

サインインしてコメントする。

回答 (1 件)

Florian Morsch
Florian Morsch 2018 年 5 月 18 日
編集済み: Florian Morsch 2018 年 5 月 18 日
You can change the alpha channel of the image to fit your needs. The real "problem" here is, there is no such thing as "nothing". If you turn the black to opaque you still have some kind of background color (mostly some grayish or so). You could also cut out the colored part and save it as new picture, this should also work.
These three links provide information and examples for the change in the alpha channel.
For cropping and saving the cropped part there are examples here: https://de.mathworks.com/matlabcentral/answers/315408-how-to-cropt-the-image-and-save-cropped-part

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by