How to insert a disc and centered around the dot?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sara
am 10 Feb. 2020
Kommentiert: Sara
am 10 Feb. 2020
Hi,
I have A = zeros(100,100) materix which I added a while pixel (dots) in this zeros materix randomly. I have also another disc materix as follows
disk = strel('disk', 10);
D = disk.Neighborhood;
what I want to do is insert the disc and centered around the pixel ( white pixel)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Feb. 2020
A(appropriate_row:appropriate_row+99, appropriate_column:appropriate_column+99) = ...
A(appropriate_row:appropriate_row+99, appropriate_column:appropriate_column+99) | D;
3 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!