Difference between revisions of "Olena/Suggestions"

From LRDE

(Add the OlenaMenu on each Olena pages)
(Don't include the menu if the page is used included in another page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{OlenaMenu}}
+
<noinclude>{{OlenaMenu}}</noinclude>
   
 
A list of suggestions for [[Olena]].
 
A list of suggestions for [[Olena]].
Line 59: Line 59:
 
* Delete oln/core/generate.hh<br/>
 
* Delete oln/core/generate.hh<br/>
 
* Delete oln/core/abstract/binary_image.hh
 
* Delete oln/core/abstract/binary_image.hh
* Add macros: <br/> oln_size_type<br/> oln_size_type_<br/> oln_impl_type<br/> oln_impl_type_<br/> oln_bkd_iter_type<br/> oln_bkd_iter_type_<br/> oln_fwd_iter_type<br/> oln_fwd_iter_type_<br/> -----
+
* Add macros: <br/> oln_size_type<br/> oln_size_type_<br/> oln_impl_type<br/> oln_impl_type_<br/> oln_bkd_iter_type<br/> oln_bkd_iter_type_<br/> oln_fwd_iter_type<br/> oln_fwd_iter_type_

Latest revision as of 15:04, 12 November 2014

A list of suggestions for Olena.

Add any idea or suggestion you have, regarding implementation of Olena, its contents, its use, etc.

  • In the doc, "apply(convert::stretch<int_u8>(), res_img)" should be used for all algorithm that produces labels.
  • Core need some directories to make it more readable. Rename fwd_iter1d, ... to iter_fwd_1d, ...
  • Improve image I/O: have a look at pam to handle output on int_u32, float and complex images.
  • Extend winiter: Add an orientation meaning in traversing dpoints (clockwise, counter-clockwise...):
1window2d w = win_c4p();
2winiter<window2d> dp(w, clockwise);
3for_all(dp)
4	[...]
  • Expand Types's behaviour and operations to image:
1image2d< int_u<3, strict> > a;
2image2d< int_u<4, strict> > b = a;
3
4image2d< int_u<3, unsafe> > c = b + a;
  • Bitwise operations upon scalar type.
  • Olena type names

Olena has got point2d, dpoint2d, window2d, w_window2d, neighborhood2d. That's great. But the size type is called image2d_size ! It should be size2d.

  • Removing dp of a window

A window::rm(const dpoint& ) method should be great. This is usefull for interactive edition of a window.


  • Adding a way to specify the border size when we create an image by "IO" :

image2d<int_u8> lena("./lena.pgm", 5); (currently you can use the argument "border size" in the other constructors of image)

  • Adding a smart way to create windows.

Currently we do :

1  win
2		.add(0, -delta)
3		.add(-delta, 0);

We would like to write something like :

1win = {ints = 0, -delta, brk,
2				  -delta, 0, end}
  • Make dimension a type rather than an unsigned and build a hierarchy of dimension types (theo)
  • Delete oln/core/generate.hh
  • Delete oln/core/abstract/binary_image.hh
  • Add macros:
    oln_size_type
    oln_size_type_
    oln_impl_type
    oln_impl_type_
    oln_bkd_iter_type
    oln_bkd_iter_type_
    oln_fwd_iter_type
    oln_fwd_iter_type_