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.

double to uint8 conversion???

Status
Not open for further replies.

ujjwal verma

Newbie level 4
Joined
Feb 8, 2007
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
double to uint8 conversion

can any one tell me how to convert double to uint8 in matlab....(except the inbuilt fn im2double)...
 

double to uint8 conversion in matlab

X = uint8(X);
 

uint8 conversion

it is not working......can u tell me wht does uint8 means in matlab.......
 

double to uint8

double : - double precision floting point number rang -10^308 to +10^308
unit8 :- unsigned 8 bit intigers in the rang [0 255]

use im2uint8 , inbuilt function

eg.

U8 = im2uint8(D); % D is double image
 

To see a description of the uint8 function, type "help uint8" or "doc uint8"

Maybe you are trying to convert image-to-uint8 instead of double-to-uint8?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top