want to calculate std_value and mean_value
Show older comments
below is my coding but i dont what happend i dont get data
------------------------
img1 = imread('SCM Data.jpg');
img = (-0.18 / (-0.28 / (45.39 / double(img1) - 1)) + 1) * 5.3;
std_value = std2(img);
mean_value = mean2(img);
fprintf('standard deviation:%.2f\n', std_value);
fprintf('average value:%.2f\n', mean_value);
-----------------------

by the way if i conducted calculate it will chage to

Accepted Answer
More Answers (1)
Here is the correct code:
img1 = imread('ALPS.jpg');
figure
imshow(img1); title('Original Image')
std_value1 = std2(img1);
mean_value1 = mean2(img1);
fprintf('Original Image: \n')
fprintf('standard deviation:%.5f\n', std_value1);
fprintf('average value:%.5f\n', mean_value1);
img2 = (-0.18./(-0.28/(45.39./(img1)- 1))+1) * 5.3;
std_value2 = std2(img2);
mean_value2 = mean2(img2);
fprintf('Changed Image: \n')
fprintf('standard deviation:%.5f\n', std_value2);
fprintf('average value:%.5f\n', mean_value2);
figure
% See why std2 is giving '0'
imshow(img2), title('Changed Image')
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
