Commit Graph

31 Commits

Author SHA1 Message Date
Guillaume Raffy f686d89204 imagej's headless regression no longer causes tests to fail (as these failures only happen in headless mode, see issue #6)
also added a logging mechanism to reduce stdout pollution (printing to stdout doesn't play nicely with python's unittest mechanism)
2022-01-25 07:44:23 +01:00
Guillaume Raffy ad18e2e451 more work on graffy/lipase#3 : added a plugin to detect globules based on circular symmetry.
-  the detection is not great at the moment (15 globules detected amongst the 50), because:
  1. the parameters are probably not optimal
  2. the mask used is incomplete
  3. some particules are very difficult to detect anyway
- added documentation
- still need some more work:
  1  output the radius of detected particles
  2. analyse why detection is not optimal
  3. handle weights w_r and w_a
  4. filter out radial profiles that are not expected
  5. improve the computation of the peakness s_p

v1.02
2020-04-17 19:30:48 +02:00
Guillaume Raffy 13eb92c76e allows the user to choose the location of the tests output data
This prevents pollution of git repository with temporary files and is done via a makefile variable TESTS_OUTPUT_DATA_PATH.
2020-04-10 13:26:05 +02:00
Guillaume Raffy 2505d69692 forgot to commit this file in my last commit! 2020-04-08 14:29:21 +02:00
Guillaume Raffy 5a144f1907 added test test_stack_mean which was used to find bug in IJHyperstack.get_image 2020-04-08 12:47:09 +02:00
Guillaume Raffy 4daf2bfe91 now there is an image processing to compute the radial profile (needed for graffy/lipase#3). 2020-04-06 16:35:28 +02:00
Guillaume Raffy e8b1e331fe added a function that creates an image containing a circle
this function will be used for to complete #3
2020-04-02 15:52:43 +02:00
Guillaume Raffy e3ab3b6140 v1.01 : added the "Ipr/Lipase/Compute Globules Area" plugin
fixes #2
2020-03-27 16:49:21 +01:00
Guillaume Raffy 97af360b7b made pylint check imports now that my vscode project is properly configured
nb: my vscode project is at the moment outside git repos, so the fix to the vscode project is not visible in git. But fwiw, I declared PYTHONPATH variable in  a .env file at the root of the workspace.
2020-03-27 12:34:08 +01:00
Guillaume Raffy 22c112a18d now the globules area estimator's results are stored as hdf5 files
- saving results as hdf5 allows easy usage or exploration of results using hdfview or hdfcompass, or by any that supports hdf5 files.
- I had to add support for hdf5 file export, which was more complicate than using h5py library (which is not available in fiji's  jython). So instead of using h5py, I wrote a generic hdf5 data structure (not restricted to jython), that can be saved using the jython jhdf5 library.
2020-03-20 14:36:21 +01:00
Guillaume Raffy 8f6d1188e5 added a a method that estimates the global area of globules over time 2020-03-18 16:33:14 +01:00
Guillaume Raffy 76094378b9 reenabled tests that were accidentally disabled 2020-03-12 17:09:03 +01:00
Guillaume Raffy ded2856619 added a debugging mechansism so that debug images can now be turned on or off 2020-02-14 18:28:34 +01:00
Guillaume Raffy 1ae9821a6e renamed preprocessing.py as telemos.py because it contains functions that have been translated from matlab telemos toolbox 2020-02-14 11:32:46 +01:00
Guillaume Raffy df1a9b869f refactoring: renamed width() into get_width() to avoid confusion with properties 2020-02-13 14:34:32 +01:00
Guillaume Raffy 777db445be compute_traps_mask now returns a traps mask, as expected
- to do this I had to split test_template_matcher into 2 unit tests (one of them being  a unit test just for template matching)
2020-02-06 15:30:36 +01:00
Guillaume Raffy cc6d89ed7c reverted unwanted change in last commit 2020-01-30 16:45:28 +01:00
Guillaume Raffy 1702d97965 now a clean trap image is computed as the median value of all traps 2020-01-30 16:44:11 +01:00
Guillaume Raffy dcf5d61f3d refactored traps detector into 3 different classes and cleaned up 2020-01-29 18:19:01 +01:00
Guillaume Raffy 224234c3e7 added code to detect the traps
This processing will be needed to compute the traps mask
This code needs to be cleaned
2020-01-29 12:11:43 +01:00
Guillaume Raffy f7ad17f9e8 added a function to remove lighting non uniformity 2019-10-08 16:40:39 +02:00
Guillaume Raffy 61f6d9aeba cleanup ununsed files and comments 2019-10-04 12:27:25 +02:00
Guillaume Raffy fe389f7897 Fixed bug : now test0001.bash fails if the python script fails.
This allows to now detect if the test succeeds or not. Also turned test_preprocessing into a proper unit test. This test is now much cleaner, as preprocessing.py does no longer require ij related code.
2019-10-01 12:25:15 +02:00
Guillaume Raffy d9b8605dc2 fixed bug in plugins parameter passing that prevented test0001 to work 2019-09-30 16:18:32 +02:00
Guillaume Raffy 228ae4ab54 fixed errors detected by pylint 2019-09-18 12:34:52 +02:00
Guillaume Raffy 7994afd01a started the abstraction of the image processing engine so that the lipase image processing can be executed without imagej if it's deemed to slow in the end. 2019-09-16 15:53:27 +02:00
Guillaume Raffy b7b1f81fa7 improved source code layout 2019-09-16 11:54:13 +02:00
Guillaume Raffy 669d5822d1 made test001.bash usable on my workstation in addition to jenkin server 2019-09-13 15:16:12 +02:00
Guillaume Raffy e8523efd18 added nearly all of estimate_white's post processing (particles removal)
As a result, the implementation of estimate_white is getting closer to completion. However, the performance of fiji's gray morphology is very poor, which makes it practically unusable with the default settings provided in the original code (estimateWhiteFluoImageTelemos)

Bug 2623 - Faire un traitement automatique pour les images du projet lipase
2019-09-13 15:15:01 +02:00
Guillaume Raffy d50cd1825e fixed bug that caused test0001 to fail finding lipase module 2019-07-17 19:11:14 +02:00
Guillaume Raffy 04e46b27dd started to translate matlab telemosToolbox's preprocessing functions into jython so that they can benefit from fiji framework
- started to write estimate_white, with its unit test
- refactor: split lipase.py into modules
- cleanup : removed unused files and unused jenkins steps
- improved jenkinsfile

Bug 2623 - Faire un traitement automatique pour les images du projet lipase
2019-07-17 16:56:05 +02:00