inserting shape into image and cropping accordingly.

1 Ansicht (letzte 30 Tage)
yogesh jain
yogesh jain am 1 Okt. 2015
Kommentiert: yogesh jain am 5 Okt. 2015
hello all , I want to ask that how to introduce or place different shapes in an image (such as- circle , triangle , rectangle etc.) and crop the image as per them (like - circular , triangular and rectangular cropping) . thank you.

Antworten (1)

Walter Roberson
Walter Roberson am 1 Okt. 2015
You cannot do that. MATLAB only supports rectangular (well, hyperdimensional cuboid) arrays. You cannot end up with, for example, a circular array.
The closest you can get is to crop at the bounding box of the shape.
  1 Kommentar
yogesh jain
yogesh jain am 5 Okt. 2015
it is possible by introducing a mask of particular shape and filtering image through it .

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Create Block Masks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by