Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

PDL: Looking for efficient way to extract sub-images, by finding bounding boxes of "objects"

by vr (Curate)
on Nov 18, 2016 at 11:35 UTC ( [id://1176081]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    pdl> p $x
    
    [
    ...
     [1 0 0 0 0 1]
     [0 0 0 0 1 1]
    ]
    
  2. or download this
    pdl> $s = cc8compt $x
    
    pdl> p $s
    ...
     [1 0 0 0 0 3]
     [0 0 0 0 3 3]
    ]
    
  3. or download this
    p Dumper map { 
        $obj = whichND( $s == $_ );
        [
    ...
                6
              ]
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1176081]
Approved by marto
Front-paged by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-28 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found