<commit_before>catch {load vtktcl}
# Doubles the The number of images (x dimension).


source vtkImageInclude.tcl


# Image pipeline

vtkImageReader reader
reader SetDataByteOrderToLittleEndian
reader SetDataExtent 0 255 0 255 1 93
reader SetFilePrefix "../../../vtkdata/fullHead/headsq"
reader SetDataMask 0x7fff
reader ReleaseDataFlagOff
#reader DebugOn

vtkImageResample magnify
magnify SetDimensionality 3
magnify SetInput [reader GetOutput]
magnify SetAxisOutputSpacing $VTK_IMAGE_X_AXIS 0.25
magnify SetAxisOutputSpacing $VTK_IMAGE_Y_AXIS 2.2
magnify SetAxisOutputSpacing $VTK_IMAGE_Z_AXIS 0.8
magnify ReleaseDataFlagOff
#magnify SetProgressMethod {set pro [magnify GetProgress]; puts "Completed $pro"; flush stdout}


vtkImageViewer viewer
viewer SetInput [magnify GetOutput]
viewer SetZSlice 30
viewer SetColorWindow 2000
viewer SetColorLevel 1000


# make interface
source WindowLevelInterface.tcl



<commit_msg>ENH: reduced image size to accommodate 800x600 displays<commit_after>catch {load vtktcl}
# Doubles the The number of images (x dimension).


source vtkImageInclude.tcl


# Image pipeline

vtkImageReader reader
reader SetDataByteOrderToLittleEndian
reader SetDataExtent 0 255 0 255 1 93
reader SetFilePrefix "../../../vtkdata/fullHead/headsq"
reader SetDataMask 0x7fff
reader ReleaseDataFlagOff
#reader DebugOn

vtkImageResample magnify
magnify SetDimensionality 3
magnify SetInput [reader GetOutput]
magnify SetAxisOutputSpacing $VTK_IMAGE_X_AXIS 0.52
magnify SetAxisOutputSpacing $VTK_IMAGE_Y_AXIS 2.2
magnify SetAxisOutputSpacing $VTK_IMAGE_Z_AXIS 0.8
magnify ReleaseDataFlagOff
#magnify SetProgressMethod {set pro [magnify GetProgress]; puts "Completed $pro"; flush stdout}


vtkImageViewer viewer
viewer SetInput [magnify GetOutput]
viewer SetZSlice 30
viewer SetColorWindow 2000
viewer SetColorLevel 1000

# make interface
source WindowLevelInterface.tcl




{'fraction_non_alphanumeric': 0.050397877984084884, 'fraction_numerical': 0.03607427055702918, 'mean_word_length': 6.454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3612484', 'n_tokens_mistral': 680, 'n_tokens_neox': 586, 'n_words': 187}