Remove Rows/columns of a rgb Image
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello ,
I have a rgb image 512x512 pixels. I want to remove it's rows or columns pixels. How can I do that in matlab? Any help please :)
Thanks
0 Commenti
Risposte (1)
Ameer Hamza
il 10 Ott 2020
Something like this
img; % 3D RGB image array
c = []; % list of columns to delete
r = []; % list of rows to delete
img(r,c,:) = []
2 Commenti
Ameer Hamza
il 10 Ott 2020
This line delete the rows specified in vector 'r', and columns specified in vector 'c' from variable img. [] tells MATLAB to delete those lines.
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!