Image processing-CCS 3.1-c6713 dsk
显示 更早的评论
hi all, With the help of matlab we are storing the pixel values of an particular image. by the same way, how one can generate pixel value using c language. i have tried, but iam unable to get the corresponding values, my code for your reference,
FILE *fp, *f1;
float x[1024][1024];
fp=fopen('image.bmp','r+');
f1=fopen('data.dat','w+');
for(i=0;i<=64;i++)
{
for(i=0;i<=64;i++)
{
fprintf(f1,"%f",x[i][j]);
}
}
but, i am unable to see my image. im working on CCS 3.1. could somebody please help me. suggestions will be greatful.
regards, chinny
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!