File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ started 8.6.0 16/8/17
2
2
- add scRGB support
3
3
- improve radiance support
4
4
- add composite to alpha menu
5
+ - add Image / Select / Fill
5
6
6
7
started 8.5.1 22/1/17
7
8
- fix a crash bug
Original file line number Diff line number Diff line change @@ -362,6 +362,41 @@ Select_item = class
362
362
}
363
363
}
364
364
365
+ Fill_item = class
366
+ Menuaction "_Fill" "fill zero pixels with the nearest non-zero" {
367
+ action x = class
368
+ Image _result {
369
+ _vislevel = 3;
370
+
371
+ distance = Image _distance;
372
+
373
+ [_result, _distance] = vips_call "fill_nearest" [x.value] [
374
+ "distance" => true
375
+ ];
376
+ }
377
+ }
378
+
379
+ fill_nearest x
380
+ = oo_unary_function nearest_op x, is_class x
381
+ = near x, is_image x
382
+ = error (_ "bad arguments to " ++ "fill_nearest")
383
+ {
384
+ nearest_op = Operator "fill_nearest"
385
+ fill_nearest Operator_type.COMPOUND_REWRAP false;
386
+
387
+ near x
388
+ = [out, distance]
389
+ {
390
+ [out, distance] = vips_call "fill_nearest" [x] [
391
+ "distance" => true
392
+ ];
393
+ }
394
+ }
395
+
396
+
397
+
398
+
399
+
365
400
};
366
401
367
402
////////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -2593,5 +2593,3 @@ hist_entropy x
2593
2593
];
2594
2594
}
2595
2595
}
2596
-
2597
-
You can’t perform that action at this time.
0 commit comments