(int type)
| 1516 | } |
| 1517 | |
| 1518 | @AstroImageJ(reason = "Access widen for photometric debayer", modified = true) |
| 1519 | public void setType(int type) { |
| 1520 | if ((type<0) || (type>COLOR_RGB)) |
| 1521 | return; |
| 1522 | int previousType = imageType; |
| 1523 | imageType = type; |
| 1524 | if (imageType!=previousType) { |
| 1525 | if (win!=null) |
| 1526 | Menus.updateMenus(); |
| 1527 | getLocalCalibration().setImage(this); |
| 1528 | } |
| 1529 | typeSet = true; |
| 1530 | } |
| 1531 | |
| 1532 | public void setTypeToColor256() { |
| 1533 | if (imageType==ImagePlus.GRAY8) { |
no test coverage detected