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.

how to draw a line in either binary or double image??

Status
Not open for further replies.

raychen

Junior Member level 3
Joined
Jan 18, 2008
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
malaysia
Activity points
1,434
pls help me....i have a image in either binary or double form....so hw can i make a straight line in the image by using matlab coding....can anyone gv me a clue?? please....
 

Its very very simple, read the image by >> imread (). provided your image is in work. Than make a mask of same size as your image of all zeros (White). Now make a line in that white mask. eg >> image_name(10,20:30) = 1 ; Line will be of black color and your mask is of white color.

Simply add this mask having black line with your origional image. and see the result.

Yes you have done.

Good Luck
 

hi bhq

thanks for ur idea....but if i wound like to plot a straight line with equation y=mx+c

so how can i implement on the double or binary images??
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top