Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to make an opacity factor matrix from ones and zeros?

조회 수: 1 (최근 30일)
Mike Rovan
Mike Rovan 2019년 10월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
i have a matrix of ones and zeros making an irregular shape
how do i write a script to change the zeros directly bordering the ones a value less then one (lets say 0.9) then any zeros which are spaced 2 spaces away 0.8 and ..etc
0.9 and 0.8 are not specific or constant but i want to use evenly spaced numbers between 0 and 1 based on the size of the matrix and how many it can fit between a one and the furthest point away from 1. I cant think of a solution to a situation where a 0 pixel is directly bordering a 1 but also 2 points away from another 1 (maybe just priority at that point?, if theres a better idea for this situation i'm open to something similar)
the purpose of this is to use the matrix as a opacity factor matrix for blending 2 images
  댓글 수: 3
Mike Rovan
Mike Rovan 2019년 10월 16일
this is a smaller task which may be used for the bigger task in my earlier question. I came accross vision.AlphaBlender which i though might work for my earlier question so i wanted to create an opacity factory matrix (this question) to test out if it acually works for the bigger task in my previous question
Walter Roberson
Walter Roberson 2019년 10월 16일
Sounds like a duplicate question to me.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by