octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8571] image package: three deconvolution


From: Carnë Draug
Subject: [Octave-patch-tracker] [patch #8571] image package: three deconvolution routines (Wiener, RL, RLTV)
Date: Tue, 17 Feb 2015 17:06:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0

Follow-up Comment #2, patch #8571 (project octave):

I am unsure of accepting this patch since Matlab has equivalent functions and
you are already telling us that your functions behave different. I don't want
to end up with 6 deconvolution functions that are very similar but not quite. 
Even if you are not able to implement all the options, can you at least make
it Matlab compatible?

Also, a few comments about the coding before being accepted:

1. when checking input, do not simply disp a message and then return, use
error(). If there is an error, we want an error to be throw. Simply calling
return will allow the computation to continue (and then misteriously fail
later)

2. use the postpad, prepad, or padarray functions (you probably want the
padarray function). Do not do these things yourself since they are a pain to
read and therefore maintain:


  padimage = zeros (max_size);
  padpsf = zeros (max_size);
  ## ...
  padimage((1+d(1)):(max_size(1)-d(1)), (1+d(2)):(max_size(2)-d(2))) = image;
  padpsf((1+dp(1)):(max_size(1)-dp(1)), (1+dp(2)):(max_size(2)-dp(2))) = psf;


3. do not have separate code for 1 and 2 dimensions, we want to support an
arbitrary number of dimensions. This is the same operation, it does not matter
the number of dimensions.

4. do not compute the otf yourself from the psf. The functions psf2otf and
otf2psf are now part of the image package (development version).

5. I will need an email address for both Fabian Schmitt as well since he's
also claiming copyright ownership of the deconvWiener and deconvRL functions

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8571>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]