Open firasm opened 10 years ago
yeah. see here:
masterlist = json.load(open(os.path.expanduser(
'~/sdata/HerS11/HerS11.json'),'r'))
import sarpy.ImageProcessing.resample_onto as sir
src = sarpy.Scan(masterlist['HerS11Bs14']['anatomy-0h+'][0]).pdata[0]
target = sarpy.Scan(masterlist['HerS11Bs14']['LL-0h+2'][0]).pdata[0]
print src.d3proc.DATE, target.d3proc.DATE
xxx = sir.resample_onto_pdata(src, target, replace_nan=0)
print xxx.shape
imshow(src.data[:,:,20], cmap='gray')
show()
imshow(xxx[:,:,2], cmap='gray')
show()
Hmm - believe it or not, this bug doesn't seem to exist anymore. Here is the output of the above code:
Code seems to do what's expected...
Wait for @DrSAR to comment and then close the issue.
bug found when SAR was playing around with resampling anatomy images on top of LL scans.
Study: herS11