how can i split a QR image into two halves in matlab?

I tried using this code. It works perfectly well for a rgb image, but fails for a QR image. % code ims=imread('baby.jpg'); if true [rows, columns, numberOfColorChannels] = size(ims); topHalf = imcrop(ims, [1, 1, columns, floor(rows/2)]); bottomHalf = imcrop(ims, [1, ceil(rows/2), columns, floor(rows/2)]); end imshow(topHalf); imshow(bottomHalf);

Réponses (0)

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by