Image processing code explanation.
显示 更早的评论
lambda = 4;%8
theta = 0;
psi = [0 pi/2];
gamma = 0.5;
bw = 1;
N = 12;
bp_filter_input_image = sharpened_original_image;
bp_filtered_image = zeros(size(bp_filter_input_image, 1),
size(bp_filter_input_image, 2), N);
img_out_disp = zeros(size(bp_filter_input_image, 1),
size(bp_filter_input_image, 2), N);
% display 12 images in one window
figure;
for n=1:N
mean_filter = BP_fn(bw,gamma,psi(1),lambda,theta) +
1i * BP_fn(bw,gamma,psi(2),lambda,theta);
% filter output to the n-th channel
bp_filtered_image(:, :, n) = imfilter(bp_filter_input_image,
mean_filter, 'symmetric');
% next orientation
theta = theta + pi/N;
% default superposition method, L2-norm
image_vector = [];
image_vector = sum(abs(bp_filtered_image(:,:,n)).^2, 3).^0.5;
% normalize
img_out_disp(:,:,n) = image_vector./max(image_vector(:));
%result show
str=sprintf('BP theta=pi/%d',n);
subplot(3,4,n),imshow(img_out_disp(:,:,n));xlabel(str);
end
I have the following questions:
(1) What is the target/end-result of this entire routine?
(2) What is going on in the following line of code? What is 1i?
mean_filter = BP_fn(bw,gamma,psi(1),lambda,theta) +
1i * BP_fn(bw,gamma,psi(2),lambda,theta);
(3) What is going on in the following line of code?
image_vector = sum(abs(bp_filtered_image(:,:,n)).^2, 3).^0.5;
2 个评论
Ba Ba Black Sheep!
2017-2-13
编辑:Ba Ba Black Sheep!
2017-2-13
Mallikarjun umadi
2020-1-3
编辑:Mallikarjun umadi
2020-1-3
can anyone suggest code for skin disease identification using matlab code?only for herpes, psoriasis and dermatitis
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!