Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top