Ignore:
Timestamp:
12/27/10 16:39:21 (9 years ago)
Author:
aivar
Message:

Grayscale image wasn't showing up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/slim-plugin/src/main/java/loci/slim/GrayScaleImage.java

    r7398 r7468  
    7878 
    7979        // building an image stack 
    80         m_imageStack = new ImageStack(m_width, m_height, ColorModel.getRGBdefault()); 
     80        m_imageStack = new ImageStack(m_width, m_height); 
    8181        m_saveOutPixels = new byte[channels][]; 
    8282 
     
    116116                } 
    117117            } 
    118             java.util.Random randomizer = new java.util.Random(); 
    119             for (int i = 0; i < 1000; ++i) { 
    120                 int noise = randomizer.nextInt(255); 
    121                 int x = randomizer.nextInt(m_width); 
    122                 int y = randomizer.nextInt(m_height); 
    123                 outPixels[y * m_width + x] = (byte) noise; 
    124             } 
     118            //TODO random noise to ensure different channels do have different images: 
     119            //java.util.Random randomizer = new java.util.Random(); 
     120            //for (int i = 0; i < 1000; ++i) { 
     121            //    int noise = randomizer.nextInt(255); 
     122            //    int x = randomizer.nextInt(m_width); 
     123            //    int y = randomizer.nextInt(m_height); 
     124            //    outPixels[y * m_width + x] = (byte) noise; 
     125            //} 
    125126 
    126127            // add a slice 
Note: See TracChangeset for help on using the changeset viewer.