matlab image processing (gray level )

Status
Not open for further replies.

hodahussein

Full Member level 2
Joined
Apr 17, 2007
Messages
144
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,276
dear all

i have an image 8bit (gray scale) and i want to convert it to 4 bit gray scale also
using matlab

wait your reply for importance

regards
 

Hi,
Matlab does not give permission for jpg images to be 4 bit. You can use imwrite(image,'name','BitDepth','4') command for .png , .gif etc. type. But if u read your saved image Matlab automatically assigns uint8 class to your gray scale image. Instead of this you can use logarithmic or power-law transformation to your 8 bit image to compress values within 4 bit range.

Regards,
Alper USLU
 

@alperuslu, u seems to be an expert in matlab ...if u can , plz provide me the code for sobel edge detection with matlab ..thanks in advance
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…