Hi i want to find out the sum of individual columns in an image and draw a plot indicating the number of pixels in each column(A density chart).Here is my code. Please help me further.
CODE:
clc;clear all,close all;newimage=imread('NEW1.jpg');count=find(newimage<1);disp(count);sum1=sum(newimage');display(sum1);
OUTPUT:
sum1 = Columns 1 through 5 69646 69446 18233 68154 57611 Columns 6 through 10 45726 36549 54894 20902 3878 Columns 11 through 15 45726 .......
BUT I WANT MY OUTPUT TO BE AS
4512(say)[sum for the first column] 4561[for the second column] and so on....
HOW TO GET IT??? PLEASE HELP
Best Answer