Board index FAQ Search View unanswered posts View active topics Register Login
Plankton Image Analysis
User community for using image analysis to count and identify plankton
FlowCAM color plugin
Page 1 of 1 [ 7 posts ] Post new topic Post new topic   Reply to topic Reply to topic

First unread post
Moderator: Ben
Print view
Users browsing this forum: No registered users and 1 guest
Post FlowCAM color plugin Posted: Thu Jul 23, 2009 11:08 am
Evalvarez
Offline
Member
Hello,

Some months ago I tried to process samples from a colour FlowCAM with the FIT_VIS plugin for ImageJ in order to use ZooPhytoImage later. The plugin did not work and I thought the problem was that the images were RGB and not greyscale.
But, in fact, the plugin is prepared to change colour images to greyscale images and work with them (it is not of great importance to lost colour information since colour images are not calibrated, calibration images are greyscale (!!)).
So, I realized the problem was in the software version because from VisualSpreadsheet 1.5.14 to current versions there have been some minor changes in Contexts fields and Data headers.
Now I have changed my mind and I am doing the same job with R (EBImage package) which is a code I am more familiar with, but, maybe, it could be useful for somebody to know what changes must be done in the FIT_VIS plugin to work with FlowCAM samples obtained with VisualSpreadsheet 2.0.0 or later.

About Context fields: SaveIntervalMinutes has changed to RecalibrationIntervalMinutes:

Line 558
/** this method populated the Cal_Filename field based upon time */
private boolean alignCalFiles(String[] calFiles){

//make sure we are ready to access data
if (dataAsArray==false){splitVector(",", vData);}
//calibration interval in minutes -> converted to mS
long dCal = parseLong(getValue("RecalibrationIntervalMinutes", vCtx));
dCal = dCal * (long) 60000;

About Data Headers: some new variables have been included and other ones have changed their name, so they must be listed as follows, in this case it is not necessary to delete the previous ones, because as the header says it is a list of possible data fieldnames:


Line 1456
/** populates the possible data file fieldnames and field types
this is just a look up table of known combinations */
private boolean populatedataflags(){

vDataFlags.add("Id=INT32");
vDataFlags.add("Area_ABD=FLOAT32");//was Area (ABD)
vDataFlags.add("Diameter_ABD=FLOAT32");
vDataFlags.add("Volume_ABD=FLOAT32");
vDataFlags.add("Diameter_ESD=FLOAT32");
vDataFlags.add("Volume_ESD=FLOAT32");
vDataFlags.add("Length=FLOAT32");
vDataFlags.add("Width=FLOAT32");
vDataFlags.add("Aspect_Ratio=FLOAT32");
vDataFlags.add("Transparency=FLOAT32");
vDataFlags.add("Intensity=FLOAT32");
vDataFlags.add("Sigma_Intensity=FLOAT32");
vDataFlags.add("Sum_Intensity=FLOAT32");
vDataFlags.add("Compactness=FLOAT32");
vDataFlags.add("Elongation=FLOAT32");
vDataFlags.add("Perimeter=FLOAT32");
vDataFlags.add("Convex_Perimeter=FLOAT32");
vDataFlags.add("Roughness=FLOAT32");
vDataFlags.add("Feret_Max_Angle=FLOAT32");
vDataFlags.add("Feret_Min_Angle=FLOAT32");
vDataFlags.add("PPC=FLOAT32");
vDataFlags.add("Ch1_Peak=FLOAT32");
vDataFlags.add("Ch1_Peak_Area=FLOAT32");
vDataFlags.add("Ch2_Peak=FLOAT32");
vDataFlags.add("Ch2_Peak_Area=FLOAT32");
vDataFlags.add("Ch3_Peak=FLOAT32");
vDataFlags.add("Ch3_Peak_Area=FLOAT32");
vDataFlags.add("Ch2/Ch1_Ratio=FLOAT32");
vDataFlags.add("Edge_Gradient=FLOAT32");
vDataFlags.add("Avg_Red=FLOAT32");
vDataFlags.add("Avg_Green=FLOAT32");
vDataFlags.add("Avg_Blue=FLOAT32");
vDataFlags.add("Ratio_Red_Green=FLOAT32");
vDataFlags.add("Ratio_Blue_Green=FLOAT32");
vDataFlags.add("Ratio_Red_Blue=FLOAT32");
vDataFlags.add("CaptureX=INT32");
vDataFlags.add("CaptureY=INT32");
vDataFlags.add("SaveX=INT32");
vDataFlags.add("SaveY=INT32");
vDataFlags.add("PixelW=INT32");
vDataFlags.add("PixelH=INT32");
vDataFlags.add("Cal_Const=FLOAT32");
vDataFlags.add("Timestamp=STRING");
vDataFlags.add("Filename=STRING");
vDataFlags.add("Filter_Score=FLOAT32");
vDataFlags.add("Source_Image=FLOAT32");
vDataFlags.add("Cal_Filename=STRING");
vDataFlags.add("Calibration_Image=FLOAT32");
vDataFlags.add("UClass=INT32");
vDataFlags.add("UConf=INT32");
vDataFlags.add("UComment=STRING");



Well, these are all changes I found and modifying them the plugin works correctly (the macro FIT_VIS.txt does not need to be modified). But changes in the same way could be done in the future software updates.

Best,

Eva
Profile
Post Re: FlowCAM color plugin Posted: Thu Aug 06, 2009 12:59 pm
Ben
Offline
Member
Hi Eva,

Thanks for the info and suggestions. You have bumped into the same issues we have all struggled with regarding FlowCAM - that the data format/contents change between successive versions. While FIT has come a long way toward making the data readily available to for post-processing, there are still the little things that you discovered that can and will break third-party software like the FIT_VIS plugin.

Kevin and I have worked with this very issue a lot last winter and spring. In the end we decided to change the plugin's operating paradigm so that ImageJ (and the plugin for FlowCAM) require minimal input from the user and that the context file is not mined for data at all. In the background, R is used to prep the data for input into the plugin and for assembling the data after processing for use in ZooImage. Unfortunately, the updated plugin is not ready release just yet.

In the meantime, it looks like you have a nice solution.

Cheers,
Ben
Profile
Post Re: FlowCAM color plugin Posted: Wed Jul 07, 2010 9:03 am
Malisa
Offline
Member
Hi Ben and Eva,
I'm now working on the same kind of problem as you were almost one year ago according to those posts.
I tried to use the FIT VIS plugin with ImageJ on my Flowcam files (color) but it doesnt work. I will try the changes given by Eva...But I would also like to know if the new plugin you were talking about, Ben, is now ready for release....
Any comments or help on that subject would be much appreciated!!
cheers
Elise
Profile
Post Re: FlowCAM color plugin Posted: Tue Jul 13, 2010 8:08 pm
Ben
Offline
Member
Hi,

Goodness! You have been very patient.

Development has been sporadic but I think it could be made available by the end of the month. I'll squeak when I have it.

Cheers,
Ben
Profile
Post Re: FlowCAM color plugin Posted: Mon Jul 19, 2010 8:51 pm
Ben
Offline
Member
Malisa wrote:
I tried to use the FIT VIS plugin with ImageJ on my Flowcam files (color) but it doesnt work. I will try the changes given by Eva...But I would also like to know if the new plugin you were talking about, Ben, is now ready for release....


As I dust off this stuff, I am reminded that FlowCam's data format varies a lot. It would help to have example data sets. The ideal data set has (1) not more than two collages, (2) both binary masks and calibration images, (3) an intact context file and (4) the full set of exportable features in the exported csv file. It is not worth trying to manually edit a larger sample into a smaller one - the best thing is to make a very short run. If you could please send me such an example data set that would be a great help. Please zip that sample directory and attach it to your reply to this post.

Thanks and cheers!
Ben
Profile
Post Re: FlowCAM color plugin Posted: Wed Aug 11, 2010 2:09 pm
enric
Offline
Member
Hi!

I am about to start playing with the FlowCam and ZooPhytoImage, and would be also interested to get any new updated plugin if possible, as well as any advice you can provide.

Thanks!

Enric
Profile
Post Re: FlowCAM color plugin Posted: Tue Aug 17, 2010 1:08 am
Ben
Offline
Member
Hi,

I think the best thing is to send me an example dataset (acquire two or three collages), zip the sample directory and attach it here. That way I can be sure the plugin operates with your data.

Cheers,
Ben
Profile
Page 1 of 1 [ 7 posts ] Post new topic Post new topic   Reply to topic Reply to topic

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
Search for:
Display posts from previous: Sort by
cron

Powered by phpBB © 2002, 2006 phpBB Group
All times are UTC
subMerged by redhair