How do I fix "Unrecognized function or variable" error?
이전 댓글 표시
Here is a part of code for fractal image compression and I am getting "Unrecognized function or variable 'create_transform'" error. How do I fix it?
Unrecognized function or variable 'create_transform'
Error in FIC_1 (line 101)
[temp_scale, temp_mse, temp_average] =
create_transform(original_input_image, row, column, range_size);
for row = 1:range_size:original_height
for column = 1:range_size:original_width
if fractal_mse(row, column) <= mse_tolerance && ...
fractal_mse(row,column+half_range_size) <= mse_tolerance && ...
fractal_mse(row+half_range_size,column) <= mse_tolerance && ...
fractal_mse(row+half_range_size,column+half_range_size) <= mse_tolerance
% Transforms for row and column
[temp_scale, temp_mse, temp_average] = ...
create_transform(original_input_image, row, column, range_size);
if temp_mse <= mse_tolerance
fractal_scale(row, column) = temp_average;
fractal_mse(row, column) = temp_average;
fractal_average(row, column) = temp_average;
fractal_size(row,column) = range_size;
fractal_filled(row,column) = 1;
fractal_filled(row,column+half_range_size) = 0;
fractal_filled(row,column+half_range_size) = 0;
fractal_filled(row+half_range_size,column)= 0;
fractal_filled(row+half_range_size, column+half_range_size) = 0;
end
end
end
end
댓글 수: 3
Voss
2021년 12월 14일
As far as I can tell (from searching mathworks.com), there is no built-in MATLAB function called create_transform. Are you using some MATLAB code you got from somewhere else? If so, you may need to set your path appropriately.
Mohammed Rahil Kazi
2021년 12월 14일
Mohammed Rahil Kazi
2021년 12월 14일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!