Module ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias alias Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Num Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Return NameLoad AugAssignDiv NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str AugAssignPow NameStore Num AugAssignPow NameStore Num Assign NameStore NameLoad AugAssignAdd NameStore NameLoad If NameLoad body Return NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return BinOpMult Call AttributeLoad NameLoad attr NameLoad CompareGt Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign NameStore BinOpSub NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad orelse Return NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num Num CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad Num CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num If CompareNotEq AttributeLoad NameLoad attr Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num Num CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num Num CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad Num CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad Num CompareLt SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad Num CompareGt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Return NameLoad decorator_list
N/A __future__ division N/A numpy np N/A mahotas mh N/A convolve gaussian_filter N/A _hsobel_filter N/A N/A N/A np array N/A N/A -1 0 1 N/A -2 0 2 N/A -1 0 1 8.0 N/A _vsobel_filter N/A N/A N/A np array N/A N/A -1 -2 -1 N/A 0 0 0 N/A 1 2 1 8.0 N/A __all__ N/A sobel dog sobel N/A N/A img just_filter N/A False N/A N/A 
    edges = sobel(img, just_filter=False)

    Compute edges using Sobel's algorithm

    `edges` is a binary image of edges computed according to Sobel's algorithm.

    This implementation is tuned to match MATLAB's implementation.

    Parameters
    ----------
    img : Any 2D-ndarray
    just_filter : boolean, optional
        If true, then return the result of filtering the image with the sobel
        filters, but do not threashold (default is False).

    Returns
    -------
    edges : ndarray
        Binary image of edges, unless `just_filter`, in which case it will be
        an array of floating point values.
     N/A img N/A N/A np array img dtype N/A np float N/A N/A N/A img ndim 2 N/A N/A N/A ValueError mahotas.sobel: Only available for 2-dimensional images N/A img N/A N/A img min N/A ptp N/A N/A img ptp N/A N/A ptp 0 N/A N/A img N/A img ptp N/A vfiltered N/A convolve img _vsobel_filter mode nearest N/A hfiltered N/A convolve img _hsobel_filter mode nearest N/A vfiltered 2 N/A hfiltered 2 N/A filtered vfiltered N/A filtered hfiltered N/A just_filter N/A N/A filtered N/A thresh N/A 2 N/A N/A np sqrt N/A N/A filtered mean N/A N/A N/A N/A mh regmax filtered N/A N/A N/A np sqrt filtered thresh N/A dog N/A N/A img sigma1 multiplier just_filter N/A 2 1.001 False N/A N/A 
    edges = dog(img, sigma1 = 2, thresh= None, just_filter = False)

    Compute edges using the Difference of Gaussian (DoG) operator.

    `edges` is a binary image of edges.

    Parameters
    ----------
    img : Any 2D-ndarray
    sigma1 : the sigma value of the first Gaussian filter. The second filter 
        will have sigma value 1.001*sigma1
    multiplier : the multiplier to get sigma2. sigma2 = sigma1 * multiplier
    just_filter : boolean, optional
        If true, then return the result of filtering the image with the DoG
        filters, no zero-crossing is detected (default is False).
      
    Returns
    -------
    edges : ndarray
        Binary image of edges, unless `just_filter`, in which case it will be
        an array of floating point values.
     N/A img N/A N/A np array img dtype N/A np float N/A N/A N/A img ndim 2 N/A N/A N/A ValueError mahotas.dog: Only available for 2-dimensional images N/A sigma2 N/A sigma1 multiplier N/A G1 N/A gaussian_filter img sigma1 mode nearest N/A G2 N/A gaussian_filter img sigma2 mode nearest N/A DoG N/A G2 G1 N/A N/A m n N/A img shape N/A N/A just_filter N/A N/A e N/A N/A np zeros N/A m n dtype bool N/A N/A DoG N/A thresh N/A 0.75 N/A N/A np mean N/A abs DoG N/A rr N/A N/A np arange 1 N/A m 2 N/A cc N/A N/A np arange 1 N/A n 2 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ rr cc 0 N/A N/A DoG N/A N/A N/A np ix_ rr N/A cc 1 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ rr cc N/A DoG N/A N/A N/A np ix_ rr N/A cc 1 thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ rr N/A cc 1 0 N/A N/A DoG N/A N/A N/A np ix_ rr N/A cc 1 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ rr N/A cc 1 N/A DoG N/A N/A N/A np ix_ rr cc thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ rr cc 0 N/A N/A DoG N/A N/A N/A np ix_ N/A rr 1 cc 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ rr cc N/A DoG N/A N/A N/A np ix_ N/A rr 1 cc thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ N/A rr 1 cc 0 N/A N/A DoG N/A N/A N/A np ix_ rr cc 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ N/A rr 1 cc N/A DoG N/A N/A N/A np ix_ rr cc thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rz cz N/A N/A np nonzero N/A N/A DoG N/A N/A N/A np ix_ rr cc 0 N/A N/A N/A rz size 0 N/A N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 0 N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 0 N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 N/A DoG N/A N/A N/A np ix_ rz N/A cz 1 thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz 0 N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz thresh N/A N/A e N/A N/A rx cx 1 N/A N/A rx cx N/A N/A np nonzero N/A N/A np logical_and N/A N/A np logical_and N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz 0 N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz 0 N/A N/A abs N/A N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz N/A DoG N/A N/A N/A np ix_ N/A rz 1 cz thresh N/A N/A e N/A N/A rx cx 1 N/A e N/A