Skip to content

Use libtopotoolbox implementations in FLOWobj.createAuxiliaryTopo #15

@wkearn

Description

@wkearn

A good place to start with libtopotoolbox is in toolbox/@FLOWobj/private/createAuxiliaryTopo. We can do most but not all of the steps in that function using libtopotoolbox. Each of the following libtopotoolbox functions need a MEX wrapper and then should be incorporated into the corresponding function of topotoolbox3:

        CC = bwconncomp(I);
        tweight = 1;
        for r = 1:CC.NumObjects
            maxdepth = max(D(CC.PixelIdxList{r}));
            D(CC.PixelIdxList{r}) = (maxdepth - D(CC.PixelIdxList{r})).^tweight + CarveMinVal;
            %                             D(CC.PixelIdxList{r}) = maxdepth - D(CC.PixelIdxList{r});
            %                             D(CC.PixelIdxList{r}) = (D(CC.PixelIdxList{r})./maxdepth + CarveMinVal).^tweight;
        end
        clear CC

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions