Trying to flip image without using the built in function
Afficher commentaires plus anciens
Trying to write a function that reads in an image and then flips the image so that its appearance is a mirror image of the original image. Here is my code for my attempt. Not quite working, if has anyone could provide some suggestions, it would be appreciated.
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 8 Fév 2018
Hint:
Replace
[ii, jj] = size(A);
with
[ii, jj, numberOfColorChannels] = size(A);
shivam singh
le 30 Juil 2019
% To create the mirror image of an image without using pre defined function
clc;
clear all;
close all;
A = imread('C:\Users\Student\Desktop\shivam_1069.jpg');
subplot(2,2,1);
imshow(A);
B = A(:,end:-1:1,:);
subplot(2,2,2);
imshow(B);
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!