Short Description

A small script to synchronize all LUT (color map and histogram) all of opened images from the current active view.

Versions

  • Version 1 • Released on: 2017-04-04 15:53:53
    Download
    Description:

    initial version

    // get all opened view
    viewers = gui.getViewers()
    // get LUT (look up table) from current view
    lut = gui.getActiveLUT()
    
    // current view exist ?
    if (lut != null)
    {
    	// for all opened views
    	for(i = 0; i < viewers.size(); i++)
    	{
    		// take the LUT
    		v = viewers.get(i)
    		l = v.getLut()
    		// and set it from active view LUT
    		l.copyFrom(lut)
    	}
    }
    

Leave a Review