ISET / isetcam

Open source version of the original ISET, a complement to ISETBIO
MIT License
130 stars 51 forks source link

Optic can not load mat data #32

Open FengJin2023 opened 10 months ago

FengJin2023 commented 10 months ago

After I load a .mat data into optic. Below error message has popped up. Could you take a look what is the problem is? The oi fov is not set yet. Using the scene fov. The oi fov is not set yet. Using the scene fov. *** The oi fov is not set yet. Using the scene fov. Warning: Variable 'opticalimage' not found.

In vcLoadObject (line 56) In vcImportObject (line 44) In oiWindow_App/menuFileLoadOI_Callback (line 874)

wandell commented 10 months ago

In this case, I am not sure what action you are taking. I will check if you tell me what file you are loading.

The warning (fov is not set yet) can happen if the oi is not set. The oi field of view (fov) is inherited from the scene via oiCompute(oi,scene);

Anyway, this one looks like some edge case of usage. I will try to handle it once I know what you did to get here.

Onward,

From: FengJin2023 @.> Date: Thursday, November 23, 2023 at 9:01 AM To: ISET/isetcam @.> Cc: Subscribed @.***> Subject: [ISET/isetcam] Optic can not load mat data (Issue #32)

After I load a .mat data into optic. Below error message is pop up.

The oi fov is not set yet. Using the scene fov. The oi fov is not set yet. Using the scene fov. *** The oi fov is not set yet. Using the scene fov. Warning: Variable 'opticalimage' not found.

In vcLoadObject (line 56) In vcImportObject (line 44) In oiWindow_App/menuFileLoadOI_Callback (line 874)

— Reply to this email directly, view it on GitHubhttps://github.com/ISET/isetcam/issues/32, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOAQWPA6SC37CYSZJDOFK3YF56MPAVCNFSM6AAAAAA7YBWBSGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDQNJYGA4TCMQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

FengJin2023 commented 10 months ago

Thank you for your reply. I was trying to do below.

  1. Make scene image from 'scene'.
  2. Save it as .mat file
  3. Open it in 'optic'.

Attached it the file I used.

white_noise.zip

wandell commented 10 months ago

I am sorry, but I don’t really follow this.

Why would you try to open a scene struct, saved in a .mat file, as an optic? The computational path is to define the optics properties in an oi, and then to use oiCompute to render an optical image from the scene, such as

Scene = sceneCreate; Oi = oiCreate; Oi = oiCompute(oi,scene).

From: FengJin2023 @.> Date: Thursday, November 23, 2023 at 3:02 PM To: ISET/isetcam @.> Cc: Brian A Wandell @.>, Comment @.> Subject: Re: [ISET/isetcam] Optic can not load mat data (Issue #32)

Thank you for your reply. I was trying to do below.

  1. Make scene image from 'scene'.
  2. Save it as .mat file
  3. Open it in 'optic'.

Attached it the file I used.

white_noise.ziphttps://github.com/ISET/isetcam/files/13453752/white_noise.zip

— Reply to this email directly, view it on GitHubhttps://github.com/ISET/isetcam/issues/32#issuecomment-1824983065, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOAQWIMLVFVCOEWYXCV4EDYF7IZNAVCNFSM6AAAAAA7YBWBSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUHE4DGMBWGU. You are receiving this because you commented.Message ID: @.***>

FengJin2023 commented 10 months ago

I misunderstood the working flow of the tool. I successfully get images in OI and Sensor. However, I got another problem on processor. I will open a new questions. Besides, I have some general questions regarding settings. Shall I wrote it by email or github?

wandell commented 10 months ago

Good to have the issues on GitHub. Thanks.

Brian Wandell Stein Family Chair Stanford University Http://www.stanford.edu/~wandell


From: FengJin2023 @.> Sent: Saturday, November 25, 2023 9:53:37 PM To: ISET/isetcam @.> Cc: Brian A Wandell @.>; Comment @.> Subject: Re: [ISET/isetcam] Optic can not load mat data (Issue #32)

I misunderstood the working flow of the tool. I successfully get images in OI and Sensor. However, I got another problem on processor. I will open a new questions. Besides, I have some general questions regarding settings. Shall I wrote it by email or github?

— Reply to this email directly, view it on GitHubhttps://github.com/ISET/isetcam/issues/32#issuecomment-1826608691, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOAQWMLAZ3JTCQVJVHB4LLYGLKODAVCNFSM6AAAAAA7YBWBSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGYYDQNRZGE. You are receiving this because you commented.Message ID: @.***>