What is the code for high boost filter
古いコメントを表示
Please send me a small code for applying high boost filter to an image. I am not getting how to code it for high boost filter.
回答 (1 件)
Image Analyst
2020 年 11 月 8 日
You could add a laplacian to a delta function to get a new convolution kernel
laplacianKernel = [-1, -1, -1; -1, 8, -1; -1, -1, -1];
deltaFunction = [0, 0, 0; 0, 1, 0; 0, 0, 0];
scaleFactor = 1; % Whatever... From 0 to +255, including fractional numbers like 0.5
kernel = laplacianKernel + scaleFactor * deltaFunction;
% Normalize so that the mean intensity doesn't change.
kernel = kernel / sum(kernel(:))
% Filter the image
filteredImage = imfilter(originalImage, kernel);
1 件のコメント
Preetham Manjunatha
2024 年 12 月 23 日
編集済み: Preetham Manjunatha
2024 年 12 月 23 日
@Image Analyst, thank you! Works perfectly.
カテゴリ
ヘルプ センター および File Exchange で Image Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!