Cropping images into patches

1 Ansicht (letzte 30 Tage)
Marwa Gamal Abo elezz
Marwa Gamal Abo elezz am 15 Okt. 2019
edit: I have 400 images i want to crop it into 5,600 patches 1495×1495 pixels and stride of 99 pixels (i need it with overlapping)
I want to crop image 2048*1536 into 14 patches 1495*1495 ,How?
  4 Kommentare
prasanth s
prasanth s am 17 Okt. 2019
image of size 2048*1536 has 3145728 pixels. and,
image patch of size 1495*1495 has 2235025 pixels. and,
3145728 / 2235025 = 1.4075 , so
1.4075 patches can be extracted (without repeating the pixels in any two patch).
specify the full logic that you needed.
Marwa Gamal Abo elezz
Marwa Gamal Abo elezz am 18 Okt. 2019
I edited the quastion to write the full problem

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 17 Okt. 2019
patch1=original_image(1:1495,1:1495);
patch2=original_image(1496:end,1496:end);
  1 Kommentar
Marwa Gamal Abo elezz
Marwa Gamal Abo elezz am 18 Okt. 2019
I need it with overlapping ,i need one image cropped into 14 patches 1495*1495

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by