Module: BinManager
- Included in:
- Classification, CtTile, Density, Histogram, ImTile, Original, StatResults, Statistic, Test
- Defined in:
- lib/data_struct.rb
Overview
enables loading and showing of binary datatsets
Instance Method Summary collapse
Instance Method Details
#load_bin ⇒ Object
40 41 42 |
# File 'lib/data_struct.rb', line 40 def load_bin self.data_load=File.read path end |
#show(graphic_data = self.data_load) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/data_struct.rb', line 44 def show graphic_data=self.data_load tf=Tempfile.new ["temp",".jpg"] tf.write graphic_data tf.close puts "#{tf.path}" fork do `open #{tf.path}` end Process.wait tf.unlink end |