Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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)...
 

mahdithdn

Advanced Member level 4
Joined
Aug 18, 2004
Messages
107
Helped
27
Reputation
54
Reaction score
9
Trophy points
1,298
Location
Iran
Activity points
896
double to uint8 conversion in matlab

X = uint8(X);
 

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
uint8 conversion

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

nagacnu

Junior Member level 2
Joined
Sep 8, 2005
Messages
21
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,281
Activity points
1,435
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
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
636
Reputation
1,270
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top