Closed glabouebe closed 3 years ago
Hi,
From your error message:
Unable to perform assignment because the size of the left side is 256-by-256 and the size of the right side is 256-by-256-by-3.
This suggests that your video file has a 256x256 resolution, and has 3 channels per pixel (likely RGB), i.e. there are 3 values for each pixel.
However, EZcalcium can only handle videos that contain single-channel images (aka grayscale images), i.e. each pixel can only has 1 value.
So you would need to prepare single-channel image data files for EZcalcium - either select the right format when "saving" or "exporting" your data files in whatever image acquisition/processing software, or "convert" your existing files to single-channel (grayscale) format.
Hello,
Thank you so much for your help. I'm gonna try what you suggested !
Best regards,
Gwen.
Le mar. 6 juil. 2021 à 12:52, bodayw @.***> a écrit :
Hi,
From your error message:
Unable to perform assignment because the size of the left side is 256-by-256 and the size of the right side is 256-by-256-by-3.
This suggests that your video file has a 256x256 resolution, and has 3 channels per pixel (likely RGB), i.e. there are 3 values for each pixel.
However, EZcalcium can only handle videos that contain single-channel images (aka grayscale images), i.e. each pixel can only has 1 value.
So you would need to prepare single-channel image data files for EZcalcium
- either select the right format when "saving" or "exporting" your data files in whatever image acquisition/processing software, or "convert" your existing files to single-channel (grayscale) format.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/porteralab/EZcalcium/issues/7#issuecomment-874659887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUELM3KKR7QZKF4B3HXLWKDTWLOAVANCNFSM45EW3OVQ .
-- Gwenaël LABOUEBE, PhD.
Senior Research Fellow
Center for Integrative Genomics (CIG) – Pr. Thorens' Group
University of Lausanne, Building "Le Génopode"
Phone : +41 21 692 39 83
Email : @.***
Site web : http://www.unil.ch/cig
Hello, when I try to load a .avi file I got this error:
Unable to perform assignment because the size of the left side is 256-by-256 and the size of the right side is 256-by-256-by-3.
Error in read_file (line 63) imData(:,:,i-sframe+1) = Y1;
Error in ez_roi_detect/RunROIDetectionButtonPushed (line 337) Y = read_file(filename);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 386) Error while evaluating Button PrivateButtonPushedFcn.
I obtained the same error for both motion correction and ROI detection function. Could you please help me with that ?
Thank you a lot in advance for your help.
Best.