I want to get normalized silhouette image.
However, I got this images when I use the below code.
Figure 1 Figure 2
Figure 3 (I want to get this image that normalized at the center of the image)
function Y=normalize8(X)%% Init. operations
X=double(X);[a,b]=size(X);%% Adjust the dynamic range to the 8-bit interval
max_v_x = max(max(X));min_v_x = min(min(X));Y=ceil(((X - min_v_x*ones(a,b))./(max_v_x*(ones(a,b))-min_v_x*(ones(a,b))))*255);endclear allclose allRGB = imread('weighted17.jpg');I = rgb2gray(RGB);figureimshow(I)Y=normalize8(I)figureimshow(Y)
Best Answer