LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scale monochrome 16bit image

Solved!
Go to solution

Hello,

 

After some processing the image becomes quite weak with respect to full scale.

Is there simple way to rescale it to full scale ?

 

A solution that comes immediately is to extract image statistics (e.g max) and use them to multiply the whole image by a constant.

Even trying to apply such solution I've met difficulties: I didn't find block that multiply image by a constant.

 

Thanks in advaice.

 

ScaleImage_to_full_scale [0].png

0 Kudos
Message 1 of 15
(4,944 Views)

Do you want to Change the Resolution of a image?

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 15
(4,934 Views)

No, I want to keep the original resolution (i.e. 16 bits), but rescale intensity ... for example if the max value of pixels is 100,  the pixels with 100 become 65365, if min value is 5, the pixels with 5 become 0.

The pixels with value 10 become 10*65365/(100 - 5).

 

I have also one more question: how to determine from wich library comes a particular block on BD (or FP).

For example actually I'm wôrking with VI that was began by my collegue.

I couldn't find the graphical block (please see the snapshot below), so for putiing the new ones I proceed by copy/past.

 

Thanks

 

find_a_particular_block.JPG

0 Kudos
Message 3 of 15
(4,926 Views)

It seems that the solution for scaling an image by a constant is quite simple: multply operator does the job ... 2nd image left unconnected.

 

 

multiply_image_by_constant.JPG

0 Kudos
Message 4 of 15
(4,919 Views)

Vision Pallets.PNG

 

 

Inside Vision utilities you will find all Vision pallets

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 15
(4,918 Views)

Hi Pavel,

 

I have also one more question: how to determine from wich library comes a particular block on BD (or FP).

You should have heard about the context help window before: Just use it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(4,914 Views)

PalanivelT a écrit :

Vision Pallets.PNG

 

 

Inside Vision utilities you will find all Vision pallets


 

I've searched trough sub-palets and still didn't find it.

For others block there is context help that facilitate searching, but for this particular block context help merely doesn't exist.

0 Kudos
Message 7 of 15
(4,911 Views)

:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\vision\Basics.llb

 

Please confirm the LabVIEW Version and Whether the VI opens without error to confirm vision Module Licenced or not

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 15
(4,906 Views)

PalanivelT a écrit :

:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\vision\Basics.llb

 

Please confirm the LabVIEW Version and Whether the VI opens without error to confirm vision Module Licenced or not


Sure, all modules are licensed and every VI opens without errors.

If this block is part of standard pallette, could you, please "recognize" this block at your side.

Thanks.

 

 

vision_module.JPG

0 Kudos
Message 9 of 15
(4,900 Views)

The reason you could not find the Image icon that you circled in your earlier post is that it is a Front Panel indicator -- it is an Image.  Your Block Diagram is set to "Place Front Panel Terminals as Icons", so you got an Icon for the Front Panel Image indicator.  If you right-click on the Icon on the Block Diagram, you should see a "Find Indicator" option that will take you to the Image on the Front Panel.

 

Really, this is very, very basic LabVIEW Vision/Image processing.  Am I correct that you are attempting to do this entirely on your own, with absolutely noone to teach/mentor you except those of us on the LabVIEW Forums?  There are a few books on LabVIEW Vision and IMAQ that you might consider purchasing and spending the time to read and do examples -- you would at least get a much better grasp of the fundamentals than you appear to have.

 

Bob Schor

0 Kudos
Message 10 of 15
(4,885 Views)