Skip to content

Commit 11e02da

Browse files
committed
reset rank demand hint, enable seq for morph
I'd left the demand hint for rank as smalltile from some debugging. I've set the whole of morphology to sequential mode, which should be safe, cf. the convolution base class.
1 parent 33762dc commit 11e02da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libvips/morphology/morphology.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ vips_morphology_class_init(VipsMorphologyClass *class)
5757
{
5858
GObjectClass *gobject_class = G_OBJECT_CLASS(class);
5959
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS(class);
60+
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS(class);
6061

6162
gobject_class->set_property = vips_object_set_property;
6263
gobject_class->get_property = vips_object_get_property;
6364

6465
vobject_class->nickname = "morphology";
6566
vobject_class->description = _("morphological operations");
6667

68+
operation_class->flags = VIPS_OPERATION_SEQUENTIAL;
69+
6770
/* Inputs set by subclassess.
6871
*/
6972

libvips/morphology/rank.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ vips_rank_build(VipsObject *object)
517517
* too many recalculations on overlaps.
518518
*/
519519
if (vips_image_pipelinev(rank->out,
520-
VIPS_DEMAND_STYLE_SMALLTILE, in, NULL))
520+
VIPS_DEMAND_STYLE_FATSTRIP, in, NULL))
521521
return -1;
522522
rank->out->Xsize -= rank->width - 1;
523523
rank->out->Ysize -= rank->height - 1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy