#129: Reintegrate oln.m4 (full or a part of it) into Olena 1.0
-----------------------------------+----------------------------------------
Reporter: levill_r | Owner: levill_r
Type: enhancement | Status: new
Priority: minor | Milestone: Olena 1.0ß
Component: Olena | Version: 1.0
Keywords: configure autoconf M4 |
-----------------------------------+----------------------------------------
In Olena 0.11, `oln.m4` (which might be renamed to `olena.m4`) provided
useful services to both the Olena package (search for libraries, set up
flags for tests, etc.) and autoconfiscated packages using Olena, by
providing a `--with-oln` (to be renamed to `--with-olena`) flag.
We should reintegrate a part of these features, possibly in two M4 macro
packages:
* one for Olena,
* one for Olena-based projects.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/129>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image library.
Spam detection software, running on the system "kualalumpur.lrde.epita.fr", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Un magasin auto recherche des telecollaborateurs. En
quoi consiste le travail : des annonces de vente de voitures
apparaissent dans votre ville et nos clients veulent acheter ces
voitures. Habituellement, une petite avance est versee au vendeur afin
que la voiture soit reservee pour notre client. Mais, ces derniers
temps, on tombe sur des escrocs qui mettent en vente des voitures qui
n'existent pas et qui disparaissent apres avoir recu l'avance. [...]
Content analysis details: (9.2 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.0 NO_REAL_NAME From: does not include a real name
0.1 FORGED_RCVD_HELO Received: contains a forged HELO
1.4 MSGID_FROM_MTA_ID Message-Id for external message added locally
-2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
[score: 0.0000]
0.0 HTML_MESSAGE BODY: HTML included in message
1.4 HTML_10_20 BODY: Message is 10% to 20% HTML
0.0 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
1.5 RAZOR2_CF_RANGE_E4_51_100 Razor2 gives engine 4 confidence level
above 50%
[cf: 100]
0.5 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
0.5 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
[cf: 100]
1.6 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
[Blocked - see <http://www.spamcop.net/bl.shtml?78.2.44.215>]
3.9 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
[78.2.44.215 listed in sbl-xbl.spamhaus.org]
0.0 ADVANCE_FEE_1 Appears to be advance fee fraud (Nigerian 419)
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
* image2d.ixx (mln::image2d<T>::set): New method (extension).
---
swilena/ChangeLog | 6 ++++++
swilena/image2d.ixx | 23 +++++++++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index 9b948f7..ac6fcdf 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,5 +1,11 @@
2010-02-08 Roland Levillain <roland(a)lrde.epita.fr>
+ Add a setter in the mln::image2d<T> meta-wrapper.
+
+ * image2d.ixx (mln::image2d<T>::set): New method (extension).
+
+2010-02-08 Roland Levillain <roland(a)lrde.epita.fr>
+
Add a Swilena wrapper for mln::value::rgb8.
* rgb8.i: New file.
diff --git a/swilena/image2d.ixx b/swilena/image2d.ixx
index 90532bc..702bc74 100644
--- a/swilena/image2d.ixx
+++ b/swilena/image2d.ixx
@@ -1,5 +1,6 @@
// -*- C++ -*-
-// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2008, 2009, 2010 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -63,6 +64,24 @@
// FIXME: Doc.
%define instantiate_image2d(I, T)
+ /* Add a setter, since Python does not seem to allow writings like
+
+ ima(p) = 1
+
+ and will complain with this message:
+
+ SyntaxError: can't assign to function call
+
+ which is a real pain. How about adding an operator `[]'? Or a
+ method , like `at'? */
+ %extend mln::image2d< T >
+ {
+ void set(const point2d& p, const T& v)
+ {
+ (*$self)(p) = v;
+ }
+ }
+
// Instantiate base classes of mln::image2d<T> so that Swig knows it
// derives from mln::Image.
%template() mln::internal::image_primary< T, mln::box2d, mln::image2d< T > >;
@@ -70,4 +89,4 @@
%template() mln::internal::image_checked_< mln::image2d< T > >;
// Instantiate mln::image2d<T>
%template(I) mln::image2d< T >;
-%enddef
+%enddef // !instantiate_image2d
--
1.5.6.5