Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
Hotel Management System Restaurant Version 5.25
Azizi search engine script PHP 4.1.10
Travel Booking script 1.0.4
Chessgra 1.1
Keno Game 1.I
VChess 6.x-1.x-dev
Killer Guestbook Script 1.1
RLS Algorithm Demo 1.0
PHP MLM Software 2.0.1
College Management System Script 1.0.4
Spider(rader) Chart for Multi Data 1.0
Simple Radar_system_simulation 1.0
The Spherical K-means algorithm 1.0
Discrete Frechet Distance 1.0
AJ Matrix v2.6
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Fast Parsing of Line Segments in a BW Mask 1.0
File ID: 83345






Fast Parsing of Line Segments in a BW Mask 1.0
Download Fast Parsing of Line Segments in a BW Mask 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 14
Submit Rating:
Fast Parsing of Line Segments in a BW Mask 1.0 Description
Description: LINEINMASK determines portions of the line in and out of a mask

[inX inY] = LINEINMASK(XS,YS,BW,XV,YV) computes a the segments of the
line specified by verticies XV and YV that are inside the mask BW.
Points XS and YS specify the limits (or pixel values) of the
coordinates of the matrix BW.

[inX inY] = LINEINMASK(BW,XV,YV) assumes XS=1:N and YS=1:M where
[M,N]=SIZE(BW).

[inX inY] = LINEINMASK(...,METHOD) Uses the given method to create the
polygon from the mask.
Inner | Outer | {Exact}

[inX inY outX outY] = LINEINMASK(...) outputs the segments of the line
both in and out of the mask.

Example:
I = imread('rice.png');
level = graythresh(I);
bw = im2bw(I,level);
bw = bwareaopen(bw, 50);
[a b] = size(bw);
xv = b*rand(10,1);
yv = a*rand(10,1);
[inX inY outX outY] = lineinmask(bw,xv,yv,'exact');
figure
imagesc(bw)
colormap(bone)
hold on;
h1 = plot(inX,inY,'r');
h2 = plot(outX,outY,'b');
legend([h1 h2],'Inside Mask','Outside Mask');

By J Sullivan, August 2011

License: Shareware

Related: bwilevel, graythreshi, bwareaopenbw, sizebw, brand, Level, imread ricepng, outer, Exact

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 14



More Similar Code

Simulating the non-stationary progress of the temperature in a Plate.

Parameters are Temperature and Heattransfer on each site of the plate and its Dimensions.

(Material-parameters of Aluminium were used)



Sometimes it is nice to print a banner line in the output of a command line script to group a section of output (say, in a log file). This little banner() function will center a given string in a line (using a character and length you can...



This code provides you a pluggable library for fast computation of mathematical expressions in C programs with x86 JIT compiler.



Jargl (Java ARGument parsing Library) is a library for parsing command line arguments in Java. It follows a declarative, bean-like approach and thus is very easy to use.



The attached Matlab routines compute the medial axis of 2-D solids whose boundary is made-up of line segments and circular arcs.
Caveats:
* The attached code is slow.
* There are also a few bugs that we are aware of, and expect to...



Fast version of r576930 reimplemented using a list of lists instead of a node class.



This technique simply calculates variation based on a comparison of all abundances in a time series, and is free of assumptions of an underlying 'normal' distribution. It is more robust that the coefficient of variation CV and/or the standard...



A function to automate bacterial colony counting in images of plated agar in a Petri dish.
Provides colony_count.m to automate counting of bacterial colonies.

The approach is as follows:

1. Use Hough transform to locate...



I thought of exiting matlab in a different way, so came across this info submitted here, I made GUI which executes when i exits matlab, That's how you exit in style from matlab..... :)



Generates a list of links used in a post. This can be used to create a list of references like those in scientific publications. Add [lor] at the end of your post (or wherever you want the list of references) and add a title attribute to all links...

User Review for Fast Parsing of Line Segments in a BW Mask
- required fields
     

Please enter text on the image