Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate gray level of consecutive pixels

Dear Vijay S.

Thank you very much for your reply. A lot that we have to study.

With best regards,

Panmanas

 

0 Kudos
Message 11 of 15
(1,482 Views)

Dear Vijay S.

Thank you very much for your reply. A lot that we have to study.

With my best regards.

Panmanas

0 Kudos
Message 12 of 15
(1,482 Views)

Dear Vijay S.

We have studied and tried to do as AnalogKid and you suggested by fixed the broken line and gave the number 45 or 135 to ENUM, then ran.

We still could not run. The error message came as follows:

Block diagram errors

Case structure: selector values have wrong type.

Case structure: no case for some selector values.

We guessed that selector value is the ENUM vale that we gave value of 45 or 135. so we thoght that what was wrong. We try to chane type from U16 to U32 but still error come.

Could you please teach us again how should we do to run your code.

We really nervous because we have to complete this work for presentation examination.

Please kindly consider our request and reply to us.

 

Thank you very much.

With my best regards,

Panmanas

0 Kudos
Message 13 of 15
(1,445 Views)
The easiest thing to do would be to delete the case structure and make a new one since it's very easy to recreate - it's blank on one side and simply has a "Reverse 1-D Array" in the other case. Then connect the Enum to it. Right-click it's border and choose "Add case for every value" in order to add a case for each item in your Enum's item list. If that option doesn't show up, then each item in the Enum already has a corresponding case added to the structure. Wire up the 45 and 135 cases like I've shown, and then right-click the border of the case structure and choose "Remove Empty Cases" so that all you have to choose from are the two items in the enum list. That way you make sure you don't have any unwanted cases in there.

If you're still having trouble, you could use a boolean instead of an Enum since there are only two cases to consider here. You could choose True for 45 degrees and False for 135, for example, and just have a basic True/False case structure.
0 Kudos
Message 14 of 15
(1,439 Views)

Dear Vijay S.

Thnak you very much for your kindly reply.

We shall do as you suggested.

Hopefully we can make it through.

Thank you very much.

With my best regards,

Panmanas

0 Kudos
Message 15 of 15
(1,426 Views)