필터 지우기
필터 지우기

How to allign Y axis of a image with out reversing image?

조회 수: 2 (최근 30일)
Kalasagarreddi Kottakota
Kalasagarreddi Kottakota 2022년 2월 21일
편집: Matt J 2022년 2월 21일
The axis of the image is not alligned with the coordinate system. Could someone help in this regard? If I use set(gca,'YDir','normal') , the image is flipping upside down.
clear all;clc;close all;
figure()
rgb = imread('mango.png');
s = size(rgb);
h1 = image([-0.5 0.5],[-0.7 0.7],rgb);
h1.AlphaData = 1;
% set(gca,'YDir','normal')

채택된 답변

Matt J
Matt J 2022년 2월 21일
편집: Matt J 2022년 2월 21일
rgb = imread('peppers.png');
h1 = image([-0.5 0.5],[0.7 -0.7],rgb,'AlphaData',1);
set(gca,'YDir','normal')

추가 답변 (0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by