フィルターのクリア

how remove the error in given code

4 ビュー (過去 30 日間)
indrani dalui
indrani dalui 2020 年 4 月 21 日
コメント済み: Image Analyst 2020 年 4 月 21 日
(Image Enhancement)
function [final]=fftenhance(image,f)
I = 255-double(image);
[w,h] = size(I);
%out = I;
w1=floor(w/32)*32;
h1=floor(h/32)*32;
inner = zeros(w1,h1);
for i=1:32:w1
for j=1:32:h1
a=i+31;
b=j+31;
F=fft2( I(i:a,j:b) );
factor=abs(F).^f;
block = abs(ifft2(F.*factor));
larv=max(block(:));
if larv==0
56
l arv=1;
end;
block= block./larv;
inner(i:a,j:b) = block;
end;
end;
final=inner*255;
final=histeq(uint8(final));
error is shown:
Error: File: shottered.m Line: 1 Column: 8
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error.
To construct matrices, use brackets instead of parentheses.
  2 件のコメント
Tommy
Tommy 2020 年 4 月 21 日
What is line 1 of shottered.m?
Image Analyst
Image Analyst 2020 年 4 月 21 日
image is a built-in function and that may be the problem -- it's expecting input arguments for the image. Don't use image as your variable name. Call it inputImage or something.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by