how to choose 3*3 pixel block in a 512*512 gray image in matlab

4 vues (au cours des 30 derniers jours)
Aditya Shau
Aditya Shau le 22 Mai 2018
Commenté : Aditya Shau le 23 Mai 2018
I have to take block with 3*3 pixels each time for an image with the size of 512*512. Kindly suggest Hoping for your early response

Réponse acceptée

Ameer Hamza
Ameer Hamza le 22 Mai 2018
Modifié(e) : Ameer Hamza le 22 Mai 2018
You need to use FEX::MAT2TILES. Download this package and place it in MATLAB path
imageBlocks = mat2tiles(Image, [3 3])
imageBlocks will contain cell array of the 3x3 pixel blocks.
  3 commentaires
Aditya Shau
Aditya Shau le 22 Mai 2018
Thanks a lot dear Ameer
Aditya Shau
Aditya Shau le 23 Mai 2018
Thanks a lot, Walter Roberson

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by