Matlab Error Uint 8

8 ビュー (過去 30 日間)
Anca Chivulescu
Anca Chivulescu 2021 年 6 月 1 日
コメント済み: Anca Chivulescu 2021 年 6 月 7 日
Hello guys, i have some trouble with my code. When i run the code appear some erros:
error: 'steganografie' undefined near line 1, column 1
My code:
function steganografie(imag1, imag2, n)
close all
%size(imag1)
% imag1 = rgb2gray(imag1);
%imag2= rgb2gray(imag2);
imag1= uint8(imag1);
imag2= uint8(imag2);
imag1_modif= floor((imag1/(2^n))) * (2^n)
imag2_modif= (imag2/(2^(8-n)));
imag_codata =imag1_modif+imag2_modif
imwrite(imag_codata,'imag1.png')
imshow(imag_codata),title('Imaginea codata')
figure;
subplot(1,2,1), subimage(imag1),title('Imaginea in care ascund');
subplot(1,2,2), subimage(imag2),title('Imaginea pe care o ascund');
end
Can you help me to solve this issue?
  1 件のコメント
Anca Chivulescu
Anca Chivulescu 2021 年 6 月 7 日
Thank you!

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

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 6 月 1 日
You can't run your fcn file: steganografie
without providing the input arguments, viz. imag1, imag2, n
Make sure while calling this fcn file to provide input arguments.
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 6 月 2 日
That would not give an error at line 1 column 1.
What would give an error at line 1 column 1 is if there is a different script file that is intended to call steganografie but steganografie is not anywhere on the MATLAB path

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by