Mercurial > cortex
changeset 336:70469ff8eb56
more Viewable stuff.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 20 Jul 2012 13:04:25 -0500 |
parents | 5dcd44576cbc |
children | fdc98824d69b |
files | org/util.org |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/org/util.org Fri Jul 20 13:02:58 2012 -0500 1.2 +++ b/org/util.org Fri Jul 20 13:04:25 2012 -0500 1.3 @@ -533,12 +533,18 @@ 1.4 (view (doto (Node.) 1.5 (.attachChild (box 1 1 1 :color color)))))) 1.6 1.7 +(extend-type ij.ImagePlus 1.8 + Viewable 1.9 + (view [image] 1.10 + (.show image))) 1.11 + 1.12 (extend-type java.awt.image.BufferedImage 1.13 Viewable 1.14 (view 1.15 [image] 1.16 - (.show (ImagePlus. "view-buffered-image" image)))) 1.17 - 1.18 + (view (ImagePlus. "view-buffered-image" image)))) 1.19 + 1.20 + 1.21 (defprotocol Textual 1.22 (text [something] 1.23 "Display a detailed textual analysis of the given object."))