Skip to content

Commit

Permalink
Get where was cropped
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigovimieiro committed Apr 16, 2024
1 parent 75db86c commit 7bbf556
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pydbt/functions/dataPreProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@

def dataPreProcess(proj, geo, flagtransfIntensity=True, flagCropProj=True):

indX = 0

if flagCropProj:
proj = cropProj(proj)
proj, indX = cropProj(proj)

if flagtransfIntensity:
proj = transfIntensity(proj)

# Modifies parameters based on segmentation
geo.nu = proj.shape[1] # Number of pixels (columns)

return proj
return proj, indX



Expand Down Expand Up @@ -61,7 +63,7 @@ def cropProj(proj):

proj_crop = proj[:,indX::,:]

return proj_crop
return proj_crop, indX


def transfIntensity(proj):
Expand Down

0 comments on commit 7bbf556

Please sign in to comment.