-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix display of Debug spectrograms and write unit tests #300
Comments
Can you show the visual errors here, please? |
Issue #300 Write one unit test for overlay of sonogram with matrix of score/hits. Remove duplicated method RecognizerBase.WriteSpectrumIndicesFiles() Rewrite method for drawing of event rectangles.
Issue #300 Unit tests for drawing events on sonograms Make unit test for drawing a matrix of scores over a spectrogram. Shift unit test EventStatisticsCalculateTests to a new namespace of tests for acoustic events. Create new class of tests for acoustic events.
Issue #300 The main difficulty here is confusing terminology of temporal fileds and properties. Changed some of these to be more explicit. There appears to remain one more bug - the number of acoustic events in the ae.csv file does not match number that appears in the spectrogram images??
Issue #300 Final debug of merge events. It now works correctly.
Issue #300 Removed unneccesary methods and added documentation. Grouped methods according to functionality.
Issue #300 Most of the changes are to terminology of temporal variables. Also to signatures of test methods.
Issue #300 Fix anti-aliasing problem and then fix unit tests for the drawing of events.
Ok, some of this work has been done in #301. More remains. Text Anti-AliasingCompare old image vs new: oldnewissues
@towsey - can you please precisely identify and changes you've made to the fonts/sizes of the text in question between the conversion and this point - I don't want to attribute behaviour to changes that are yours and not a bug. @towsey - you should continue your work on the recognisers despite these image imperfections. We'll fix them up as we go and the images will progressively get better. |
Issue #300 Fixed test of drawing events on spectrograms. Test now uses the new image comparison facility. Set the event name to empty string in order to prevent test failing due to writing of poorly anti-aliased text. Returned font type to the original. Included new expected events image in Fixtures.
Note: an asset committed in 04f9b04 (https://github.com/QutEcoacoustics/audio-analysis/blob/04f9b044e4c0e281a6a681580bdd46c223be7037/tests/Fixtures/EventTests_SuperimposeEventsOnImage.png) is actually reflective of the bug described in this issue and will need to be adjusted when this is fixed. |
Issue #300 Write one unit test for overlay of sonogram with matrix of score/hits. Remove duplicated method RecognizerBase.WriteSpectrumIndicesFiles() Rewrite method for drawing of event rectangles.
Issue #300 Unit tests for drawing events on sonograms Make unit test for drawing a matrix of scores over a spectrogram. Shift unit test EventStatisticsCalculateTests to a new namespace of tests for acoustic events. Create new class of tests for acoustic events.
Issue #300 The main difficulty here is confusing terminology of temporal fileds and properties. Changed some of these to be more explicit. There appears to remain one more bug - the number of acoustic events in the ae.csv file does not match number that appears in the spectrogram images??
Issue #300 Final debug of merge events. It now works correctly.
Issue #300 Removed unneccesary methods and added documentation. Grouped methods according to functionality.
Issue #300 Most of the changes are to terminology of temporal variables. Also to signatures of test methods.
Issue #300 Fix anti-aliasing problem and then fix unit tests for the drawing of events.
Issue #300 Fixed test of drawing events on spectrograms. Test now uses the new image comparison facility. Set the event name to empty string in order to prevent test failing due to writing of poorly anti-aliased text. Returned font type to the original. Included new expected events image in Fixtures.
I think most of the issues highlighted here have been dealt with - except for the antialiasing. Opening that in a new issue for easier tracking. See #449 |
Describe the bug
The drawing of debug spectrograms, in particular the display of score tracks and the overlay of matrix scores, is yet to be properly checked. Need to write unit tests for these.
The overlay of score matrices on standard scale spectrograms has not been checked for some time.
This work needs to be done in order to facilitate the writing of new generic recognizers as in Issue #297.
The text was updated successfully, but these errors were encountered: