필터 지우기
필터 지우기

how to compile in a matrix

조회 수: 1 (최근 30일)
sachit
sachit 2014년 12월 25일
댓글: sachit 2014년 12월 25일
clc;
clear all;
a=imread('4.1.05.tiff');
hsv=rgb2hsv(a);
v=hsv(:,:,3);
for p=1:256
for x=v(1:256, p);
h=imhist(v);
a=sum(x.*h);
b=sum(h);
M=a/b;
C1=1:1:M-1;
C2=M-1:M:256;
q=1-((M-x))
end
end
in this code value of q is of (matrix 256*1). after running the code i am getting value of q 256 time (i.e q(matrix 256*1) 256 times). so how can i compile these value to make q of matrix 256*256

채택된 답변

Matt J
Matt J 2014년 12월 25일
q(:,p)=1-((M-x))
  댓글 수: 1
sachit
sachit 2014년 12월 25일
thank you very much sir, can you please help me to combine H(hue), S(saturation), and V(value) to make a hsv improved image

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by