equal
deleted
inserted
replaced
3564 image := newImage fromImage:oldImage |
3564 image := newImage fromImage:oldImage |
3565 ]. |
3565 ]. |
3566 |
3566 |
3567 (aMode asString endsWith:'mask') ifTrue:[ |
3567 (aMode asString endsWith:'mask') ifTrue:[ |
3568 image mask isNil ifTrue:[ |
3568 image mask isNil ifTrue:[ |
3569 (self confirm:'Generate mask from black ?') ifTrue:[ |
3569 (Dialog confirm:'Generate mask from black ?' default:false) ifTrue:[ |
3570 maskThreshold := 0.1. |
3570 maskThreshold := 0.1. |
3571 maskImage := Depth1Image fromImage:(image asThresholdMonochromeImage:maskThreshold). |
3571 maskImage := Depth1Image fromImage:(image asThresholdMonochromeImage:maskThreshold). |
3572 ] ifFalse:[ |
3572 ] ifFalse:[ |
3573 maskImage := Depth1Image extent:image extent. |
3573 maskImage := Depth1Image extent:image extent. |
3574 maskImage bits:(ByteArray |
3574 maskImage bits:(ByteArray |