AI-Elmanawy / Hyperspectral-image-analysis

Open-source software for analyzing hyperspectral images and other sets of plant phenotyping data.
https://www.sciencedirect.com/science/article/abs/pii/S0168169922005622?via%3Dihub
9 stars 0 forks source link

Build 3d cube #2

Open lixk20dada opened 8 months ago

lixk20dada commented 8 months ago

Hello, I always get an error here in the "Build 3d cube" step."UnboundLocalError: local variable 'image_RGB' referenced before assignment."

AI-Elmanawy commented 8 months ago

Which version you use

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 7:43:15 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Subscribed @.***> Subject: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Hello, I always get an error here in the "Build 3d cube" step."UnboundLocalError: local variable 'image_RGB' referenced before assignment."

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5NI2BQI6Y6KYO5SPMDYONV7HAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DANJZGM2TMMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

AI-Elmanawy commented 8 months ago

Please use new version of HSI-PP

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: DR / Ahmed islam mahmoud helmy Elmanawy @.> Sent: Sunday, January 14, 2024 9:34:55 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.>; AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Subscribed @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Which version you use

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 7:43:15 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Subscribed @.***> Subject: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Hello, I always get an error here in the "Build 3d cube" step."UnboundLocalError: local variable 'image_RGB' referenced before assignment."

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5NI2BQI6Y6KYO5SPMDYONV7HAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DANJZGM2TMMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

lixk20dada commented 8 months ago

Thank you for your reply, Hi, I'm using the style V1.2 version.

AI-Elmanawy commented 8 months ago

So that problem solved in that version or still same

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 10:21:22 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Thank you for your reply, Hi, I'm using the style V1.2 version.

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890881746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5KGTQY6D3BDUBCCWXLYOOIQFAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4DCNZUGY. You are receiving this because you commented.Message ID: @.***>

lixk20dada commented 8 months ago

Still, I've been using version 1.2

AI-Elmanawy commented 8 months ago

The software extract RGB image from hyperspectral image first then use it to create 3d Cube figure. If it not extracted, 3d cube will not create.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 10:24:51 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Still, I've been using version 1.2

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890882483, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5PIWP42DEOEVLJKXN3YOOI5HAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4DENBYGM. You are receiving this because you commented.Message ID: @.***>

lixk20dada commented 8 months ago

Maybe I'm not familiar with the software yet, I've been strictly following the pdf tutorial, I'm trying to do it again later. Thank you very much.

AI-Elmanawy commented 8 months ago

So check the folder you put hyperspectral image in it there are RGB image or not

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: DR / Ahmed islam mahmoud helmy Elmanawy @.> Sent: Sunday, January 14, 2024 10:28:13 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.>; AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

The software extract RGB image from hyperspectral image first then use it to create 3d Cube figure. If it not extracted, 3d cube will not create.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 10:24:51 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Still, I've been using version 1.2

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890882483, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5PIWP42DEOEVLJKXN3YOOI5HAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4DENBYGM. You are receiving this because you commented.Message ID: @.***>

lixk20dada commented 8 months ago

Another question I would like to ask you, is it true that after segmenting the hyperspectral image, an RGB image is automatically generated and automatically saved in the preset folder?

AI-Elmanawy commented 8 months ago

Yes right

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 10:34:09 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Another question I would like to ask you, is it true that after segmenting the hyperspectral image, an RGB image is automatically generated and automatically saved in the preset folder?

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890884819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5I6KH5QRORKL4SHH3TYOOKADAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4DIOBRHE. You are receiving this because you commented.Message ID: @.***>

AI-Elmanawy commented 8 months ago

You will find it at sub folder named as segment

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: DR / Ahmed islam mahmoud helmy Elmanawy @.> Sent: Sunday, January 14, 2024 10:34:36 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.>; AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Yes right

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 10:34:09 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Another question I would like to ask you, is it true that after segmenting the hyperspectral image, an RGB image is automatically generated and automatically saved in the preset folder?

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890884819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5I6KH5QRORKL4SHH3TYOOKADAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4DIOBRHE. You are receiving this because you commented.Message ID: @.***>

lixk20dada commented 8 months ago

It still doesn't seem to work, my procedure is as follows: after opening the spectral image the first step of radiometric calibration, then selecting the vegetation index, and finally segmenting with the selected vegetation index and REMOVING the bad pixels, after which the folder has an RGB image with the name 1.tiff. Please correct me, thanks!

AI-Elmanawy commented 8 months ago

You don't have to make radiometric if you don't have white reference board in the same image

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 11:01:03 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

It still doesn't seem to work, my procedure is as follows: after opening the spectral image the first step of radiometric calibration, then selecting the vegetation index, and finally segmenting with the selected vegetation index and REMOVING the bad pixels, after which the folder has an RGB image with the name 1.tiff. Please correct me, thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890890642, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5JXEUYLWQ7WFZZLDYTYOONE7AVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4TANRUGI. You are receiving this because you commented.Message ID: @.***>

AI-Elmanawy commented 8 months ago

Try to save mat file first then create 3d cube

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: DR / Ahmed islam mahmoud helmy Elmanawy @.> Sent: Sunday, January 14, 2024 11:02:57 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.>; AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

You don't have to make radiometric if you don't have white reference board in the same image

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 11:01:03 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

It still doesn't seem to work, my procedure is as follows: after opening the spectral image the first step of radiometric calibration, then selecting the vegetation index, and finally segmenting with the selected vegetation index and REMOVING the bad pixels, after which the folder has an RGB image with the name 1.tiff. Please correct me, thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890890642, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5JXEUYLWQ7WFZZLDYTYOONE7AVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4TANRUGI. You are receiving this because you commented.Message ID: @.***>

lixk20dada commented 8 months ago

It still doesn't work, I've looked at the tutorials and would like to ask you if there is a problem with the hyperspectral data format? My file format is .dat.

lixk20dada commented 8 months ago

Could you share the previous version? I'd like to verify it. Thank you. Please.

AI-Elmanawy commented 8 months ago

Can we contact on WhatsApp my number is 00201024435381

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: lixk20dada @.> Sent: Sunday, January 14, 2024 11:40:02 AM To: AI-Elmanawy/Hyperspectral-image-analysis @.> Cc: DR / Ahmed islam mahmoud helmy Elmanawy @.>; Comment @.> Subject: Re: [AI-Elmanawy/Hyperspectral-image-analysis] Build 3d cube (Issue #2)

Could you share the previous version? I'd like to verify it. Thank you. Please.

— Reply to this email directly, view it on GitHubhttps://github.com/AI-Elmanawy/Hyperspectral-image-analysis/issues/2#issuecomment-1890899995, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBQH5KK5RH3T4DG2IEBHPTYOORXFAVCNFSM6AAAAABBZ3D662VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA4TSOJZGU. You are receiving this because you commented.Message ID: @.***>