フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to create .exe file from .m file for creating the application.

1 回表示 (過去 30 日間)
Methil Muley
Methil Muley 2020 年 8 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
function edgeImage = sobel(originalImage, threshold) %#codegen
% edgeImage = sobel(originalImage, threshold)
% Sobel edge detection. Given a normalized image (with double values)
% return an image where the edges are detected w.r.t. threshold value.
assert(all(size(originalImage) <= [1024 1024]));
assert(isa(originalImage, 'double'));
assert(isa(threshold, 'double'));
k = [1 2 1; 0 0 0; -1 -2 -1];
H = conv2(double(originalImage),k, 'same');
V = conv2(double(originalImage),k','same');
E = sqrt(H.*H + V.*V);
edgeImage = uint8((E > threshold) * 255);

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by